/**
 * 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(--header-bg-color, var(--primary-color));
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: 60px;
}

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

.logo {
    padding: 5px 0 5px 5px;
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-image {
    height: 50px;
    max-height: 50px;
    max-width: 50px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    color: var(--menu-font-color, var(--secondary-color));
    font-family: var(--heading-font);
    font-size: 1.4rem;
    font-weight: 600;
}

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

.logo .subtitle {
    display: none;
}

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

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

.nav-menu > li {
    position: relative;
}

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

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

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

.nav-menu a.active {
    opacity: 0.8;
}

.nav-menu a:hover {
    opacity: 0.8;
}

/* Dropdown Arrow */
.dropdown-arrow {
    font-size: 0.65rem;
    margin-left: 0.25rem;
}

/* Dropdown Menu */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--header-bg-color, var(--primary-color));
    min-width: 180px;
    padding: 0.75rem 0;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    list-style: none;
    z-index: 1000;
    margin-top: 0.5rem;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--header-bg-color, var(--primary-color));
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.6rem 1.25rem;
    color: var(--menu-font-color, #fff);
    text-transform: none;
    font-size: 0.95rem;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dropdown-menu a::after {
    display: none;
}

/* 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: var(--menu-font-color, #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));
    color: #fff;
    padding: 6rem 0;
    text-align: center;
}

.hero-large {
    padding: 8rem 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
}

.hero-large .container {
    max-width: 900px;
}

.hero h1 {
    color: var(--secondary-color);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .hero-subtitle {
    font-size: 1.4rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.95;
    font-style: italic;
}

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

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* About Content Section */
.about-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-content h1,
.about-content h2,
.about-content h3,
.about-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.about-content h1:first-child,
.about-content h2:first-child,
.about-content h3:first-child {
    margin-top: 0;
}

.about-content p {
    margin-bottom: 1.25rem;
}

.about-content ul,
.about-content ol {
    margin-bottom: 1.25rem;
    padding-left: 2rem;
}

.about-content li {
    margin-bottom: 0.5rem;
}

/* Section Alt Background */
.section-alt {
    background: #f8f9fa;
}

/* 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-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

.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: 2rem;
}

.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;
}

.section-dark .musician-card {
    background: rgba(255, 255, 255, 0.08);
}

.section-dark .musician-card h3 {
    color: #fff;
}

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

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

.musician-photo-placeholder {
    background: linear-gradient(145deg, #2c2c2c 0%, #4a4a4a 50%, #3a3a3a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.25);
    border-radius: 5px;
    width: 150px;
    height: 200px;
    margin-bottom: 1rem;
    margin-left: auto;
    margin-right: auto;
}

.musician-photo-placeholder svg {
    opacity: 0.6;
}

.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;
}

.section-dark .musician-card .role {
    color: var(--secondary-color);
}

/* 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-details-section {
    padding: 2rem 0;
    background: var(--gray-100);
}

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

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

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

.program-section .section-title {
    margin-bottom: 1.5rem;
}

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

.program-item {
    padding: 1rem 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: 1.25rem 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: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-left: 3px solid var(--secondary-color);
    font-size: 0.9rem;
    line-height: 1.6;
}

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

.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-placeholder {
    background: linear-gradient(145deg, #2c2c2c 0%, #4a4a4a 50%, #3a3a3a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.25);
    height: 400px;
    filter: none;
}

.musician-detail-placeholder svg {
    opacity: 0.6;
}

.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: 1rem 0;
    margin-top: auto;
    text-align: center;
}

.site-footer p {
    margin: 0;
    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;
        z-index: 1002;
    }
    
    /* Hamburger animation to X when active */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .site-header {
        min-height: 55px;
    }
    
    .header-content {
        min-height: 55px;
    }
    
    .logo-image {
        height: 40px;
        max-height: 40px;
        max-width: 40px;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 55px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--header-bg-color, var(--primary-color));
        flex-direction: column;
        padding: 2rem;
        gap: 0.5rem;
        text-align: center;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1001;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-menu > li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 0.5rem;
    }
    
    .nav-menu > li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        padding: 0.75rem 0;
        display: block;
    }
    
    /* Dropdown on mobile - always visible when menu is open */
    .nav-menu .has-dropdown {
        position: relative;
    }
    
    .nav-menu .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: rgba(0, 0, 0, 0.15);
        margin-top: 0.5rem;
        box-shadow: none;
        border-radius: 4px;
        min-width: 100%;
        padding: 0.5rem 0;
    }
    
    .nav-menu .dropdown-menu::before {
        display: none;
    }
    
    .nav-menu .dropdown-menu a {
        padding: 0.5rem 1rem;
    }
    
    .nav-menu .has-dropdown > a .dropdown-arrow {
        display: none;
    }

    .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) {
    .site-header {
        min-height: 50px;
    }
    
    .header-content {
        min-height: 50px;
    }
    
    .logo-image {
        height: 35px;
        max-height: 35px;
        max-width: 35px;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .nav-menu {
        top: 50px;
    }
    
    .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; }

/* Page Header */
.page-header {
    background: var(--page-header-bg-color, var(--primary-color));
    color: #fff;
    padding: 6rem 0;
    text-align: center;
    background-size: cover;
    background-position: center;
}

.page-header h1 {
    color: var(--page-header-font-color, var(--secondary-color));
    margin-bottom: 0;
    font-size: 2.5rem;
}

/* Conductors List - Vertical Layout */
.conductors-list {
    max-width: 900px;
    margin: 0 auto;
}

.conductor-item {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #eee;
}

.conductor-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.conductor-photo-wrapper {
    flex-shrink: 0;
}

.conductor-photo {
    width: 200px;
    height: 260px;
    object-fit: cover;
    border-radius: 8px;
    filter: grayscale(100%);
}

.conductor-photo-placeholder {
    width: 200px;
    height: 260px;
    background: linear-gradient(145deg, #2c2c2c 0%, #4a4a4a 50%, #3a3a3a 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.25);
}

.conductor-photo-placeholder svg {
    opacity: 0.6;
}

.conductor-info {
    flex: 1;
}

.conductor-info h2 {
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
}

.conductor-role {
    color: var(--secondary-color);
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.conductor-bio {
    line-height: 1.8;
    color: #555;
}

/* Founders List - Vertical Layout */
.founders-list {
    max-width: 900px;
    margin: 0 auto;
}

.founder-item {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #eee;
}

.founder-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.founder-photo-wrapper {
    flex-shrink: 0;
}

.founder-item .founder-photo {
    width: 200px;
    height: 260px;
    object-fit: cover;
    border-radius: 8px;
    filter: grayscale(100%);
    margin: 0;
}

.founder-item .founder-photo-placeholder {
    width: 200px;
    height: 260px;
    background: linear-gradient(145deg, #2c2c2c 0%, #4a4a4a 50%, #3a3a3a 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.25);
}

.founder-item .founder-photo-placeholder svg {
    opacity: 0.6;
}

.founder-info {
    flex: 1;
}

.founder-info h2 {
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
    color: var(--primary-color);
}

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

.founder-bio {
    line-height: 1.8;
    color: #555;
}

/* Rich Content (for Rehearsals page) */
.rich-content {
    max-width: 1000px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.rich-content h1,
.rich-content h2,
.rich-content h3,
.rich-content h4,
.rich-content h5 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.rich-content h1:first-child,
.rich-content h2:first-child,
.rich-content h3:first-child {
    margin-top: 0;
}

.rich-content p {
    margin-bottom: 1.25rem;
}

.rich-content ul,
.rich-content ol {
    margin-bottom: 1.25rem;
    padding-left: 2rem;
}

.rich-content li {
    margin-bottom: 0.5rem;
}

.rich-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.rich-content table th,
.rich-content table td {
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    text-align: left;
}

.rich-content table th {
    background: #f5f5f5;
    font-weight: 600;
}

/* Table Border Styles */
.rich-content .table-no-border,
.rich-content .table-no-border td,
.rich-content .table-no-border th {
    border: none !important;
}

.rich-content .table-thin-border,
.rich-content .table-thin-border td,
.rich-content .table-thin-border th {
    border: 1pt solid #333 !important;
}

.rich-content .table-medium-border,
.rich-content .table-medium-border td,
.rich-content .table-medium-border th {
    border: 2pt solid #333 !important;
}

/* TinyMCE Columns */
.rich-content .columns {
    display: flex;
    gap: 20px;
    margin: 1.5rem 0;
}

.rich-content .columns > div {
    flex: 1;
    min-width: 0;
}

/* Column Layout for Rich Content */
.rich-content .row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}

.rich-content .column {
    flex: 1;
    min-width: 200px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Rehearsals Content */
.rehearsals-content {
    max-width: 1000px;
    margin: 0 auto;
}

/* Mobile Responsive for New Layouts */
@media (max-width: 768px) {
    .conductor-item,
    .founder-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .conductor-info,
    .founder-info {
        text-align: center;
    }
    
    .rich-content .row {
        flex-direction: column;
    }
    
    .rich-content .column {
        min-width: 100%;
    }
    
    .rich-content .columns {
        flex-direction: column;
    }
}
