/**
 * استایل صفحات عمومی سایت - بر اساس example/makeup (بدون تغییر موس کرسر)
 * فونت و کتابخانه‌ها به صورت محلی لود می‌شوند
 */
html { scroll-behavior: smooth; }
body {
    font-family: 'Vazirmatn', 'Shabnam', 'Vazir', Tahoma, sans-serif;
    margin: 0;
    padding: 0;
    direction: rtl;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f0ff 0%, #e8e0f0 50%, #f0e8ff 100%);
    color: #1a1a2e;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* هیرو */
.hero-section {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 50%, rgba(255, 107, 157, 0.1) 100%);
    border-radius: 0 0 2rem 2rem;
}
.hero-section h1 { font-size: 2.5rem; margin-bottom: 1rem; color: #1a1a2e; }
.hero-section p { font-size: 1.2rem; color: #475569; margin-bottom: 2rem; }
.hero-section .btn { display: inline-block; padding: 0.75rem 1.5rem; border-radius: 9999px; text-decoration: none; font-weight: 600; margin: 0 0.5rem; transition: transform 0.2s; }
.hero-section .btn-primary { background: linear-gradient(135deg, #667eea, #764ba2); color: white; }
.hero-section .btn-outline { background: transparent; border: 2px solid #667eea; color: #667eea; }
.hero-section .btn:hover { transform: translateY(-2px); }

/* کارت‌های بخش‌ها */
.features-section { padding: 4rem 0; }
.grid-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}
.feature-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.2);
}
.feature-card .icon { font-size: 2.5rem; display: block; margin-bottom: 0.75rem; }
.feature-card h3 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.feature-card p { margin: 0; font-size: 0.9rem; color: #64748b; }

/* فروشگاه — کتاب و جزوه */
.shop-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.shop-product-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 1.25rem;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.shop-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}
.shop-product-image {
    height: 160px;
    background: linear-gradient(135deg, #e8e0f0 0%, #f0e8ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.shop-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.shop-product-image-placeholder {
    font-size: 3rem;
    color: #667eea;
}
.shop-product-body { padding: 1.25rem; }
.shop-product-body h3 { margin: 0 0 0.5rem; font-size: 1.1rem; color: #1a1a2e; }
.shop-product-desc { font-size: 0.9rem; color: #64748b; line-height: 1.5; margin: 0 0 0.75rem; }
.shop-product-price { font-weight: 700; font-size: 1.05rem; color: #667eea; margin: 0 0 0.5rem; }
.shop-product-method { margin: 0; }
.method-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
}
.method-online { background: rgba(52, 199, 89, 0.15); color: #15803d; }
.method-center { background: rgba(102, 126, 234, 0.15); color: #4c51bf; }

/* معرفی آموزشگاه */
.intro-section { padding: 3rem 0; }
.intro-title { font-size: 1.75rem; margin-bottom: 1rem; color: #1a1a2e; }
.intro-text { font-size: 1.05rem; line-height: 1.8; color: #475569; }

/* کارت اساتید */
.teachers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.teacher-card { text-align: center; }
.teacher-photo { width: 100px; height: 100px; margin: 0 auto 1rem; border-radius: 50%; overflow: hidden; background: rgba(102, 126, 234, 0.15); }
.teacher-photo img { width: 100%; height: 100%; object-fit: cover; }
.teacher-photo-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: #667eea; }
.teacher-expertise { font-weight: 600; color: #667eea; margin-bottom: 0.25rem; }
.teacher-exp { font-size: 0.9rem; color: #64748b; margin-bottom: 0.5rem; }
.teacher-bio { font-size: 0.85rem; color: #475569; margin-top: 0.5rem; line-height: 1.5; }
.teacher-availability { margin-top: 1rem; text-align: right; font-size: 0.85rem; }
.teacher-availability ul { list-style: none; padding: 0; margin: 0.25rem 0 0; }
.teacher-availability li { padding: 0.2rem 0; color: #475569; }

/* جدول شهریه */
.fees-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.fees-table th, .fees-table td { padding: 10px 14px; text-align: right; border-bottom: 1px solid rgba(0,0,0,0.08); }
.fees-table th { background: rgba(102, 126, 234, 0.1); font-weight: 600; }
.fees-table tr:hover { background: rgba(0,0,0,0.02); }

/* هدر سایت */
.public-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.public-header .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.public-header .logo { font-size: 1.5rem; font-weight: 700; color: #667eea; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; }
.public-header .logo-img { max-height: 40px; width: auto; }
.public-header nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.public-header nav a { color: #475569; text-decoration: none; font-weight: 500; }
.public-header nav a:hover { color: #667eea; }
.public-header .auth-links { display: flex; gap: 0.75rem; }
.public-header .auth-links a { padding: 0.5rem 1rem; border-radius: 0.5rem; text-decoration: none; font-size: 0.9rem; }
.public-header .auth-links .btn-login { color: #667eea; }
.public-header .auth-links .btn-register { background: linear-gradient(135deg, #667eea, #764ba2); color: white; }

/* ناو موبایل - در صفحات موبایل نمایش داده می‌شود */
.mobile-nav { display: none; }
@media (max-width: 768px) {
    .public-header nav { display: none; }
    .mobile-nav { display: block; }
}

.main-public { min-height: 60vh; }

/* راست‌چین یکدست در صفحات عمومی */
[dir="rtl"] input:not([dir="ltr"]),
[dir="rtl"] select:not([dir="ltr"]),
[dir="rtl"] textarea:not([dir="ltr"]) { text-align: right; direction: rtl; }
[dir="rtl"] .form-group input,
[dir="rtl"] .form-group select,
[dir="rtl"] .form-group textarea { text-align: right; }
[dir="rtl"] .btn,
[dir="rtl"] button { text-align: right; direction: rtl; }
