@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;700&display=swap');

/* استایل‌های پایه */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
}

body {
    line-height: 1.6;
    background-color: #181818;
    color: #f5f5f5;
}

/* هدر و ناوبری */
header {
    background-color: #333;
    color: white;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    background: #111;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.logo img {
    max-width: 150px;
    height: auto;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-right: 2rem;
}

nav ul li a {
    color: #FFD700;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 1.1rem;
}

nav ul li a:hover {
    color: #fff;
}

/* بخش قهرمان */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background-color: #e9ecef;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* بخش‌های محتوا */
section {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background: #232323;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.07);
    margin: 2rem auto;
    padding: 2.5rem 2rem;
    max-width: 1100px;
}

h1, h2 {
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-top: 2rem;
    letter-spacing: 1px;
}

h2 {
    font-size: 2rem;
    position: relative;
    text-align: right;
    padding-bottom: 0.5rem;
    margin-top: 2.5rem;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #FFD700 60%, #fff 100%);
    border-radius: 2px;
    margin-top: 0.5rem;
}

/* گرید ویدیوها */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.video-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.video-item:hover {
    transform: translateY(-5px);
}

/* لیست کلاس‌ها */
.class-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.class-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.register-btn {
    background-color: #4CAF50;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.register-btn:hover {
    background-color: #45a049;
}

/* فوتر */
footer {
    background-color: #111;
    color: #FFD700;
    text-align: center;
    padding: 1.5rem 0 0.5rem 0;
    border-radius: 0 0 16px 16px;
    margin-top: 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #FFD700;
    margin-bottom: 0.5rem;
}

address {
    font-style: normal;
}

address p {
    margin-bottom: 0.5rem;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        margin-top: 1rem;
        flex-direction: column;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 900px) {
    .trainer-info {
        flex-direction: column;
        text-align: center;
    }
    .trainer-image {
        margin: 0 auto 1.5rem auto;
    }
}

@media (max-width: 600px) {
    section {
        padding: 1.2rem 0.5rem;
    }
    h1 {
        font-size: 1.5rem;
    }
    h2 {
        font-size: 1.2rem;
    }
    nav {
        padding: 1rem 0.5rem;
    }
}

/* دسترسی‌پذیری */
:focus {
    outline: 3px solid #FFD700;
    outline-offset: 2px;
}

/* بهبود خوانایی */
p, li {
    max-width: 65ch;
    margin: 0 auto;
}

/* بهبود کنتراست */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* بخش درباره مربی */
.about-trainer {
    background-color: #f8f9fa;
    padding: 4rem 2rem;
}

.trainer-info {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.trainer-image {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #FFD700;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.15);
    margin-left: 2rem;
    background: #111;
}

.trainer-bio {
    font-size: 1.1rem;
    line-height: 1.8;
}

.trainer-bio p {
    margin-bottom: 1rem;
}

.trainer-bio ul {
    margin-top: 1.5rem;
    padding-right: 1.5rem;
}

.trainer-bio ul li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    position: relative;
    padding-right: 1.7rem;
}

.trainer-bio ul li::before {
    content: '✔️';
    position: absolute;
    right: 0;
    top: 0.1rem;
    color: #FFD700;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-top: 1rem;
    color: #ffd700;
}

/* بخش افتخارات */
.achievements {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.achievements h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    text-align: right;
}

.achievements ul {
    list-style: none;
    padding: 0;
}

.achievements li {
    position: relative;
    padding-right: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.achievements li::before {
    content: '🏆';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 768px) {
    .achievements {
        margin-top: 1.5rem;
        padding: 1rem;
    }

    .achievements li {
        font-size: 1rem;
    }
}

/* لیست‌های بخش‌ها با آیکون */
.resume-section ul, .achievements ul, .skills-section ul, .contact-section ul {
    list-style: none;
    padding-right: 1.5rem;
}

.resume-section ul li, .achievements ul li, .skills-section ul li, .contact-section ul li {
    margin-bottom: 0.7rem;
    font-size: 1.08rem;
    position: relative;
    padding-right: 1.7rem;
}

.resume-section ul li::before, .achievements ul li::before, .skills-section ul li::before {
    content: '🏅';
    position: absolute;
    right: 0;
    top: 0.1rem;
    color: #FFD700;
}

.contact-section ul li::before {
    content: '📞';
    position: absolute;
    right: 0;
    top: 0.1rem;
    color: #FFD700;
}
.contact-section ul li:first-child::before {
    content: '✉️';
    color: #FFD700;
}
.contact-section ul li:last-child::before {
    content: '📍';
    color: #FFD700;
}

/* پنل‌های با پس‌زمینه روشن */
.about-trainer, .achievements, .resume-section, .skills-section, .contact-section {
    background: #fff !important;
    color: #181818 !important;
}

.about-trainer h1, .about-trainer h2,
.achievements h2, .resume-section h2,
.skills-section h2, .contact-section h2 {
    color: #FFD700 !important;
}

.about-trainer ul li, .achievements ul li, .resume-section ul li, .skills-section ul li, .contact-section ul li {
    color: #222 !important;
}

/* محصولات */
.products-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.product-card {
    background: #181818;
    border: 2px solid #FFD700;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(255, 215, 0, 0.08);
    padding: 2rem 1.5rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.2s;
}
.product-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 6px 24px rgba(255, 215, 0, 0.15);
}
.product-card h2 {
    color: #FFD700;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}
.product-card .price {
    color: #FFD700;
    font-weight: bold;
    margin: 1rem 0 0.5rem 0;
    font-size: 1.1rem;
}
.buy-btn {
    background: linear-gradient(90deg, #FFD700 70%, #bfa100 100%);
    color: #181818;
    border: none;
    border-radius: 8px;
    padding: 0.7rem 2.2rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.3s, color 0.3s;
}
.buy-btn:hover {
    background: #181818;
    color: #FFD700;
    border: 2px solid #FFD700;
}

/* مقالات */
.articles-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.article-card {
    background: #232323;
    border: 2px solid #FFD700;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(255, 215, 0, 0.08);
    padding: 2rem 1.5rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.2s;
}
.article-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 6px 24px rgba(255, 215, 0, 0.15);
}
.article-card h2 {
    color: #FFD700;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.read-btn {
    background: linear-gradient(90deg, #FFD700 70%, #bfa100 100%);
    color: #181818;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.3s, color 0.3s;
}
.read-btn:hover {
    background: #181818;
    color: #FFD700;
    border: 2px solid #FFD700;
}

/* فرم تماس */
.contact-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #232323;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.07);
    padding: 2.5rem 2rem;
    max-width: 500px;
    margin: 2rem auto;
}
.contact-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 1.2rem;
}
.contact-form label {
    color: #FFD700;
    font-weight: bold;
    margin-bottom: 0.3rem;
}
.contact-form input,
.contact-form textarea {
    background: #181818;
    color: #FFD700;
    border: 1.5px solid #FFD700;
    border-radius: 8px;
    padding: 0.7rem 1rem;
    font-size: 1rem;
    outline: none;
    transition: border 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border: 2px solid #fff;
}
.send-btn {
    background: linear-gradient(90deg, #FFD700 70%, #bfa100 100%);
    color: #181818;
    border: none;
    border-radius: 8px;
    padding: 0.7rem 2.2rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.3s, color 0.3s;
}
.send-btn:hover {
    background: #181818;
    color: #FFD700;
    border: 2px solid #FFD700;
}

/* دکمه‌های سریع */
.quick-links {
    margin: 2rem 0 1rem 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
}
.quick-btn {
    background: linear-gradient(90deg, #FFD700 70%, #bfa100 100%);
    color: #181818;
    border: none;
    border-radius: 8px;
    padding: 0.7rem 2.2rem;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    margin-bottom: 0.5rem;
}
.quick-btn:hover {
    background: #181818;
    color: #FFD700;
    border: 2px solid #FFD700;
}

@media (max-width: 700px) {
    .products-list, .articles-list {
        grid-template-columns: 1fr;
    }
    .contact-section {
        padding: 1.2rem 0.5rem;
    }
}

/* فرم‌های ورود و ثبت نام */
.login-section,
.register-section {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background: #1a1a1a;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.login-form,
.register-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-form label,
.register-form label {
    color: #ffd700;
    font-weight: bold;
}

.login-form input,
.register-form input {
    padding: 0.8rem;
    border: 1px solid #ffd700;
    border-radius: 5px;
    background: #2a2a2a;
    color: #fff;
}

.login-form input:focus,
.register-form input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 5px rgba(255,215,0,0.3);
}

.login-btn,
.register-btn {
    background: #ffd700;
    color: #000;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.login-btn:hover,
.register-btn:hover {
    background: #ffed4a;
    transform: translateY(-2px);
}

.login-section p,
.register-section p {
    text-align: center;
    margin-top: 1rem;
    color: #fff;
}

.login-section a,
.register-section a {
    color: #ffd700;
    text-decoration: none;
}

.login-section a:hover,
.register-section a:hover {
    text-decoration: underline;
}

/* پیام ورود به سیستم */
.login-message {
    text-align: center;
    margin: 2rem 0;
    padding: 2rem;
    background: #1a1a1a;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.login-message p {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.login-message .login-btn {
    display: inline-block;
    background: #ffd700;
    color: #000;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.login-message .login-btn:hover {
    background: #ffed4a;
    transform: translateY(-2px);
}

/* دکمه‌های غیرفعال */
.buy-btn:disabled {
    background: #666;
    cursor: not-allowed;
    opacity: 0.7;
}

.buy-btn:disabled:hover {
    transform: none;
    background: #666;
} 