/* ===== فونت میخک (محلی) ===== */
@font-face {
    font-family: 'Mikhak';
    src: url('/classical-music-website/website-code/fonts/Mikhak-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}
@font-face {
    font-family: 'Mikhak';
    src: url('/classical-music-website/website-code/fonts/Mikhak-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    font-family: 'Mikhak', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding: 10px 0;
    width: 100%;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo-img {
    height: 80px;
    width: auto;
    filter: brightness(1.1);
}

.nav-menu ul {
    display: flex;
    gap: 40px;
    list-style: none;
    flex-wrap: wrap;
}

.nav-menu a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #d4af37;
}

/* ===== Search ===== */
.search-form form {
    display: flex;
    align-items: center;
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50px;
    padding: 5px 8px 5px 5px;
    transition: all 0.3s ease;
}

.search-form form:focus-within {
    border-color: #d4af37;
}

.search-form .search-icon {
    background: #d4af37;
    border: none;
    color: #0a0a0a;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
}

.search-form input {
    background: transparent;
    border: none;
    padding: 8px 12px;
    color: #e0e0e0;
    font-family: 'Mikhak', sans-serif;
    font-size: 0.9rem;
    width: 180px;
    outline: none;
}

/* ===== Hero ===== */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 100px;
    width: 100%;
}

.hero-content h1 {
    font-size: 4rem;
    color: #d4af37;
    margin-bottom: 20px;
    font-family: 'Mikhak', Tahoma, sans-serif;
}

.hero-content p {
    font-size: 1.2rem;
    color: #a0a0a0;
    font-family: 'Mikhak', Tahoma, sans-serif;
}

/* ===== Sections ===== */
section {
    padding: 80px 0;
    width: 100%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #d4af37;
    margin-bottom: 50px;
    font-weight: 700;
    font-family: 'Mikhak', Tahoma, sans-serif;
}

/* ===== Grids ===== */
.composers-grid,
.eras-grid,
.forms-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 100%;
}

.composer-card,
.era-card,
.form-card {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s;
    width: 100%;
}

.composer-card:hover,
.era-card:hover,
.form-card:hover {
    transform: translateY(-10px);
    border-color: #d4af37;
}

.composer-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 2px solid #d4af37;
}

.composer-card h3,
.era-card h3,
.form-card h3 {
    color: #d4af37;
    font-size: 1.3rem;
    margin-bottom: 8px;
    font-weight: bold;
    font-family: 'Mikhak', Tahoma, sans-serif;
}

.composer-card p,
.era-card p,
.form-card p {
    font-family: 'Mikhak', Tahoma, sans-serif;
    font-size: 0.9rem;
    color: #a0a0a0;
}

.card-link {
    display: inline-block;
    margin-top: 15px;
    padding: 6px 18px;
    border: 1px solid #d4af37;
    border-radius: 30px;
    color: #d4af37;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s;
    font-weight: 500;
    font-family: 'Mikhak', Tahoma, sans-serif;
}

.card-link:hover {
    background: #d4af37;
    color: #0a0a0a;
}

/* ===== Footer Stats ===== */
.footer-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    margin: 0 auto 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    flex-wrap: wrap;
}

.footer-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #d4af37;
    font-family: 'Mikhak', Tahoma, sans-serif;
}

.footer-stat-label {
    font-size: 0.85rem;
    color: #a0a0a0;
    margin-top: 5px;
    font-family: 'Mikhak', Tahoma, sans-serif;
}

.footer {
    background: #050505;
    padding: 40px 0 30px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    text-align: center;
    width: 100%;
}

.copyright {
    color: #666;
    font-size: 0.8rem;
    font-family: 'Mikhak', Tahoma, sans-serif;
}

/* ===== Responsive (ریسپانسیو کامل) ===== */
@media (max-width: 1200px) {
    .composers-grid,
    .eras-grid,
    .forms-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .composers-grid,
    .eras-grid,
    .forms-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .hero-content h1 {
        font-size: 3rem;
    }
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    .nav-menu ul {
        justify-content: center;
        gap: 15px;
    }
    .nav-menu a {
        font-size: 0.85rem;
        white-space: nowrap;
    }
    .hero {
        padding-top: 160px;
        min-height: 50vh;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .composers-grid,
    .eras-grid,
    .forms-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .composer-card,
    .era-card,
    .form-card {
        padding: 20px;
    }
    .composer-img {
        width: 100px;
        height: 100px;
    }
    .composer-card h3,
    .era-card h3,
    .form-card h3 {
        font-size: 1.2rem;
    }
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }
    .card-link {
        padding: 5px 15px;
        font-size: 0.75rem;
    }
    .footer-stats {
        gap: 30px;
    }
    .footer-stat-number {
        font-size: 1.3rem;
    }
    .footer-stat-label {
        font-size: 0.65rem;
    }
    .search-form form {
        width: 100%;
    }
    .search-form input {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .hero {
        padding-top: 180px;
    }
    .hero-content h1 {
        font-size: 1.6rem;
    }
    .hero-content p {
        font-size: 0.9rem;
    }
    .section-title {
        font-size: 1.3rem;
    }
    .composer-img {
        width: 80px;
        height: 80px;
    }
    .composer-card h3,
    .era-card h3,
    .form-card h3 {
        font-size: 1rem;
    }
    .composer-card p,
    .era-card p,
    .form-card p {
        font-size: 0.8rem;
    }
    .nav-menu ul {
        gap: 10px;
    }
    .nav-menu a {
        font-size: 0.75rem;
    }
    .footer-stats {
        gap: 15px;
    }
    .footer-stat-number {
        font-size: 1rem;
    }
    .footer-stat-label {
        font-size: 0.5rem;
    }
    .logo-img {
        height: 50px;
    }
    .search-form .search-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
}
/* ===== فرم تماس در فوتر ===== */
.contact-section {
    text-align: center;
    max-width: 500px;
    margin: 0 auto 40px;
    padding: 20px;
    background: #1a1a1a;
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}
.contact-section h3 {
    color: #d4af37;
    margin-bottom: 15px;
}
.contact-section p {
    color: #a0a0a0;
    margin-bottom: 20px;
}
.contact-form .form-group {
    margin-bottom: 15px;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #333;
    background-color: #0a0a0a;
    color: #e0e0e0;
    font-family: inherit;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: #d4af37;
}
.submit-btn {
    background-color: #d4af37;
    color: #0a0a0a;
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}
.submit-btn:hover {
    background-color: #c5a028;
    transform: scale(1.02);
}
/* ===== فرم تماس در یک خط ===== */
.contact-section {
    text-align: center;
    max-width: 100%;
    margin: 0 auto 40px;
    padding: 20px;
    background: #1a1a1a;
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.contact-section h3 {
    color: #d4af37;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.contact-section p {
    color: #a0a0a0;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.contact-form .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.contact-form input {
    flex: 1;
    min-width: 150px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #333;
    background-color: #0a0a0a;
    color: #e0e0e0;
    font-family: 'Mikhak', Tahoma, sans-serif;
    font-size: 0.85rem;
}

.contact-form input:focus {
    outline: none;
    border-color: #d4af37;
}

.submit-btn {
    background-color: #d4af37;
    color: #0a0a0a;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    font-family: 'Mikhak', Tahoma, sans-serif;
    transition: all 0.3s;
    white-space: nowrap;
}

.submit-btn:hover {
    background-color: #c5a028;
    transform: scale(1.02);
}

/* موبایل: فرم زیر هم قرار بگیره */
@media (max-width: 768px) {
    .contact-form .form-row {
        flex-direction: column;
    }
    .contact-form input, .submit-btn {
        width: 100%;
    }
}

/* ===== فوتر دوستونی ===== */
.footer-two-columns {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

/* ستون راست (فرم تماس) */
.footer-contact-col {
    flex: 1;
    text-align: right;
    background: #1a1a1a;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.footer-contact-col h3 {
    color: #d4af37;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.footer-contact-col p {
    color: #a0a0a0;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

/* ستون چپ (آمار) */
.footer-stats-col {
    flex: 1;
    text-align: left;
}

.footer-stats {
    display: flex;
    justify-content: flex-start;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-stat-item {
    text-align: center;
    background: #1a1a1a;
    padding: 15px 20px;
    border-radius: 12px;
    min-width: 100px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: #d4af37;
}

.footer-stat-label {
    font-size: 0.75rem;
    color: #a0a0a0;
    margin-top: 5px;
}

/* کپی رایت زیر هر دو */
.copyright {
    text-align: center;
    color: #666;
    font-size: 0.8rem;
    padding-top: 20px;
}

/* فرم در یک خط */
.contact-form .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.contact-form input {
    flex: 1;
    min-width: 130px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #333;
    background: #0a0a0a;
    color: #e0e0e0;
    font-family: 'Mikhak', sans-serif;
}

.submit-btn {
    background: #d4af37;
    color: #0a0a0a;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    white-space: nowrap;
}

.submit-btn:hover {
    background: #c5a028;
}

/* موبایل: هر ستون زیر هم */
@media (max-width: 768px) {
    .footer-two-columns {
        flex-direction: column;
    }
    .footer-stats {
        justify-content: center;
    }
    .contact-form .form-row {
        flex-direction: column;
    }
    .contact-form input, .submit-btn {
        width: 100%;
    }
}

/* دکمه قلب حرفه‌ای */
.favorite-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ccc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.favorite-btn:hover {
    transform: scale(1.1);
    border-color: #d4af37;
    background: rgba(212,175,55,0.1);
}

.favorite-btn.active {
    color: #e74c3c;
    border-color: #e74c3c;
    background: rgba(231,76,60,0.1);
}

.favorite-btn.active:hover {
    transform: scale(1.1);
    background: rgba(231,76,60,0.2);
}

.favorite-msg {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* بخش کاربری در هدر */
.user-area {
    display: flex;
    align-items: center;
}

.user-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #d4af37;
}

.username {
    color: #e0e0e0;
    font-size: 0.9rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #1a1a1a;
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 10px;
    padding: 10px 0;
    min-width: 150px;
    display: none;
    z-index: 100;
    margin-top: 10px;
}

.user-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 8px 20px;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s;
}

.dropdown-menu a:hover {
    background: rgba(212,175,55,0.1);
    color: #d4af37;
}

.auth-links {
    display: flex;
    gap: 15px;
}

.auth-links a {
    color: #d4af37;
    text-decoration: none;
    padding: 5px 10px;
    border: 1px solid #d4af37;
    border-radius: 20px;
    transition: all 0.3s;
}

.auth-links a:hover {
    background: #d4af37;
    color: #0a0a0a;
}