/**
 * Community Orchestra Website Styles
 * Based on elegant orchestral design
 */

/* Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--primary-font);
    font-size: var(--body-font-size);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 { font-size: var(--heading-size); }
h2 { font-size: calc(var(--heading-size) * 0.8); }
h3 { font-size: calc(var(--heading-size) * 0.65); }
h4 { font-size: calc(var(--heading-size) * 0.5); }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header Styles */
.site-header {
    background: var(--primary-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    text-decoration: none;
}

.logo h1 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 0;
    font-weight: 600;
}

.logo .subtitle {
    color: #fff;
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
    font-style: italic;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #fff;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a.active {
    color: var(--secondary-color);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

/* Main Content */
.site-main {
    flex: 1;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(26, 26, 46, 0.85), rgba(26, 26, 46, 0.85)),
                url('../images/orchestra-bg.jpg') center/cover no-repeat;
    color: #fff;
    padding: 6rem 0;
    text-align: center;
}

.hero h1 {
    color: var(--secondary-color);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background: #b8922a;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.btn-accent {
    background: var(--accent-color);
    color: #fff;
}

.btn-accent:hover {
    background: #a00000;
}

/* Section Styles */
.section {
    padding: 4rem 0;
}

.section-dark {
    background: var(--primary-color);
    color: #fff;
}

.section-dark h2,
.section-dark h3 {
    color: var(--secondary-color);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* Concert Card */
.concert-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.concert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.concert-card-content {
    padding: 1.5rem;
}

.concert-card .date {
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.concert-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.concert-card .location {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.concert-card .program-preview {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Musician Card */
.musician-card {
    text-align: center;
    padding: 1.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.musician-card:hover {
    transform: translateY(-5px);
}

.musician-photo {
    width: 150px;
    height: 200px;
    border-radius: 5px;
    object-fit: cover;
    margin-bottom: 1rem;
    filter: grayscale(100%);
}

.musician-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.musician-card .instrument {
    color: var(--secondary-color);
    font-size: 0.95rem;
    font-style: italic;
}

.musician-card .role {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
}

/* Founder Card */
.founder-card {
    text-align: center;
    padding: 2rem;
}

.founder-photo {
    width: 180px;
    height: 240px;
    border-radius: 5px;
    object-fit: cover;
    margin-bottom: 1.5rem;
    filter: grayscale(100%);
}

.founder-card h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.founder-card .role {
    color: var(--secondary-color);
    font-style: italic;
    font-size: 1rem;
}

/* Concert Detail Page */
.concert-header {
    background: linear-gradient(rgba(26, 26, 46, 0.9), rgba(26, 26, 46, 0.9)),
                url('../images/concert-bg.jpg') center/cover;
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}

.concert-header h1 {
    color: var(--secondary-color);
}

.concert-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.concert-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Program Section */
.program-section {
    padding: 3rem 0;
}

.program-list {
    max-width: 800px;
    margin: 0 auto;
}

.program-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
}

.program-item:last-child {
    border-bottom: none;
}

.program-item.intermission {
    text-align: center;
    font-style: italic;
    color: #666;
    font-size: 1.1rem;
    padding: 2rem 0;
}

.program-work-title {
    font-family: var(--heading-font);
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.program-composer {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.program-soloists {
    font-size: 0.95rem;
    color: #555;
    margin-top: 0.5rem;
}

.program-soloists strong {
    color: var(--primary-color);
}

.program-notes {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-left: 3px solid var(--secondary-color);
    font-size: 0.95rem;
    line-height: 1.7;
}

.program-youtube {
    margin-top: 1rem;
}

.program-youtube iframe {
    max-width: 100%;
    border-radius: 5px;
}

/* Ticket Section */
.ticket-section {
    text-align: center;
    padding: 3rem 0;
    background: #f8f9fa;
}

/* Musician Detail Page */
.musician-detail {
    padding: 4rem 0;
}

.musician-detail-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
}

.musician-detail-photo {
    width: 100%;
    border-radius: 5px;
    filter: grayscale(100%);
}

.musician-detail-info h1 {
    margin-bottom: 0.5rem;
}

.musician-detail-info .instrument {
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 1rem;
}

.musician-detail-info .roles {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.role-badge {
    background: var(--accent-color);
    color: #fff;
    padding: 0.3rem 0.8rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 3px;
}

.biography {
    line-height: 1.8;
}

/* Footer */
.site-footer {
    background: var(--primary-color);
    color: #fff;
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.footer-section h4 {
    color: #fff;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul a {
    color: #ccc;
    font-size: 0.95rem;
}

.footer-section ul a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #999;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .musician-detail-content {
        grid-template-columns: 1fr;
    }
    
    .musician-detail-photo {
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--primary-color);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        text-align: center;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .concert-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.4rem;
    }
    
    .logo .subtitle {
        font-size: 0.8rem;
    }
    
    .section {
        padding: 2.5rem 0;
    }
    
    .hero {
        padding: 4rem 0;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
