/*
Theme Name: CMT Modern 2026
Theme URI: https://cmtpuppet.org/
Description: A fresh, modern theme for Columbia Marionette Theatre featuring clean design, upcoming performances sidebar, full show management, and custom homepage layouts.
Version: 2.2.3
Author: Benjamin Perkton
Author URI: https://cmtpuppet.org/
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cmt-modern
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
*/

/* ========== GOOGLE FONTS ========== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700;800&display=swap');

/* ========== CSS VARIABLES ========== */
:root {
    /* Primary Colors */
    --cmt-teal: #0891B2;
    --cmt-teal-dark: #0E7490;
    --cmt-teal-darker: #155E75;
    --cmt-teal-light: #67E8F9;
    
    /* Accent Colors */
    --cmt-gold: #F59E0B;
    --cmt-gold-light: #FCD34D;
    --cmt-orange: #F97316;
    --cmt-coral: #FB7185;
    
    /* Neutrals */
    --cmt-white: #FFFFFF;
    --cmt-off-white: #F8FAFC;
    --cmt-gray-50: #F8FAFC;
    --cmt-gray-100: #F1F5F9;
    --cmt-gray-200: #E2E8F0;
    --cmt-gray-300: #CBD5E1;
    --cmt-gray-400: #94A3B8;
    --cmt-gray-500: #64748B;
    --cmt-gray-600: #475569;
    --cmt-gray-700: #334155;
    --cmt-gray-800: #1E293B;
    --cmt-gray-900: #0F172A;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

/* ========== RESET & BASE ========== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(180deg, var(--cmt-gray-50) 0%, var(--cmt-white) 100%);
    color: var(--cmt-gray-700);
    line-height: 1.7;
    font-size: 16px;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

a {
    color: var(--cmt-teal);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--cmt-teal-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ========== SKIP LINK ========== */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: fixed;
    top: 10px;
    left: 10px;
    width: auto;
    height: auto;
    padding: 1rem 1.5rem;
    background: var(--cmt-teal);
    color: var(--cmt-white);
    border-radius: var(--radius-md);
    z-index: 100000;
    font-weight: 600;
}

/* ========== HEADER ========== */
.site-header {
    background: linear-gradient(135deg, var(--cmt-teal-dark) 0%, var(--cmt-teal-darker) 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.header-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.site-branding {
    flex-shrink: 0;
}

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

.site-branding img {
    max-height: 60px;
    width: auto;
}

.site-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cmt-white);
    margin: 0;
    line-height: 1.2;
}

.site-title a {
    color: var(--cmt-white);
    text-decoration: none;
}

.site-title a:hover {
    color: var(--cmt-gold-light);
}

/* ========== NAVIGATION ========== */
.main-nav {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    color: var(--cmt-white);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
    background: rgba(255, 255, 255, 0.15);
    color: var(--cmt-gold-light);
}

/* Dropdown */
.nav-menu ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--cmt-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 0.5rem;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    list-style: none;
    margin: 0;
    z-index: 100;
}

.nav-menu li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu ul a {
    color: var(--cmt-gray-700);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
}

.nav-menu ul a:hover {
    background: var(--cmt-gray-100);
    color: var(--cmt-teal);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--cmt-white);
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ========== ANNOUNCEMENT BANNER ========== */
.announcement-banner {
    background: linear-gradient(135deg, var(--cmt-gold) 0%, var(--cmt-orange) 100%);
    color: var(--cmt-white);
    padding: 0.875rem 2rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: var(--shadow-sm);
}

.announcement-banner a {
    color: var(--cmt-white);
    text-decoration: underline;
}

.announcement-content {
    flex: 1;
}

.announcement-close {
    background: transparent;
    border: none;
    color: var(--cmt-white);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.announcement-close:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

/* ========== MAIN LAYOUT ========== */
.site-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2.5rem;
    align-items: start;
}

.main-content {
    min-width: 0;
}

/* ========== PAGE HEADER ========== */
.page-header {
    background: linear-gradient(135deg, var(--cmt-teal) 0%, var(--cmt-teal-dark) 100%);
    padding: 3rem 2rem;
    text-align: center;
    margin: -2.5rem -2rem 2.5rem -2rem;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.page-title {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--cmt-white);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ========== CONTENT CARDS ========== */
.content-card {
    background: var(--cmt-white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--cmt-gray-200);
}

/* ========== TYPOGRAPHY ========== */
.content-card h1,
.entry-content h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--cmt-gray-900);
    margin: 0 0 1.5rem 0;
    line-height: 1.2;
}

.content-card h2,
.entry-content h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--cmt-gray-800);
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--cmt-gray-200);
}

.content-card h3,
.entry-content h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cmt-teal-dark);
    margin: 1.5rem 0 0.75rem 0;
}

.content-card p,
.entry-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--cmt-gray-600);
    margin-bottom: 1.25rem;
}

.content-card ul,
.content-card ol,
.entry-content ul,
.entry-content ol {
    margin: 1.25rem 0;
    padding-left: 1.5rem;
}

.content-card li,
.entry-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
    color: var(--cmt-gray-600);
}

/* ========== SIDEBAR ========== */
.sidebar-right {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: var(--cmt-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--cmt-gray-200);
    margin-bottom: 2rem;
}

.sidebar-widget-header {
    background: linear-gradient(135deg, var(--cmt-teal) 0%, var(--cmt-teal-dark) 100%);
    padding: 1.25rem 1.5rem;
    border-bottom: 3px solid var(--cmt-gold);
}

.sidebar-widget-header h3 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--cmt-white);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    text-align: center;
}

.sidebar-widget-content {
    padding: 1.5rem;
}

/* Performance Items */
.performance-item {
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    background: var(--cmt-gray-50);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--cmt-gold);
    transition: all 0.2s ease;
}

.performance-item:last-child {
    margin-bottom: 0;
}

.performance-item:hover {
    background: var(--cmt-gray-100);
    transform: translateX(4px);
    border-left-color: var(--cmt-orange);
}

.performance-date {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--cmt-teal-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.performance-time {
    font-size: 0.85rem;
    color: var(--cmt-gray-500);
    margin-left: 0.5rem;
    font-weight: 500;
}

.performance-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--cmt-gray-800);
    margin: 0.25rem 0;
    line-height: 1.4;
}

.performance-title a {
    color: var(--cmt-gray-800);
    text-decoration: none;
}

.performance-title a:hover {
    color: var(--cmt-teal);
}

.performance-location {
    font-size: 0.8rem;
    color: var(--cmt-gray-500);
    margin-top: 0.25rem;
}

/* Now Playing Badge */
.now-playing-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--cmt-orange) 0%, var(--cmt-coral) 100%);
    color: var(--cmt-white);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.5rem;
}

/* Show Card in Sidebar */
.sidebar-show-card {
    text-align: center;
    padding: 1.5rem;
}

.sidebar-show-card img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 1rem;
}

.sidebar-show-card h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cmt-gray-800);
    margin: 0 0 0.5rem 0;
}

.sidebar-show-card h4 a {
    color: var(--cmt-gray-800);
    text-decoration: none;
}

.sidebar-show-card h4 a:hover {
    color: var(--cmt-teal);
}

.sidebar-show-dates {
    font-size: 0.9rem;
    color: var(--cmt-orange);
    font-weight: 600;
}

/* Sidebar Button */
.sidebar-btn {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, var(--cmt-gold) 0%, var(--cmt-orange) 100%);
    color: var(--cmt-white);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    margin: 1.25rem 0 0 0;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.sidebar-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    color: var(--cmt-white);
}

/* No Performances Fallback */
.no-performances {
    text-align: center;
    padding: 1.5rem 1rem;
}

.no-performances-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.no-performances p {
    color: var(--cmt-gray-600);
    font-size: 0.95rem;
    margin: 0 0 0.5rem 0;
}

/* ========== BUTTONS ========== */
.btn,
.button,
button[type="submit"],
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--cmt-teal) 0%, var(--cmt-teal-dark) 100%);
    color: var(--cmt-white);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(8, 145, 178, 0.25);
}

.btn:hover,
.button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(8, 145, 178, 0.35);
    color: var(--cmt-white);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--cmt-teal);
    color: var(--cmt-teal);
    box-shadow: none;
}

.btn-secondary:hover {
    background: var(--cmt-teal);
    color: var(--cmt-white);
}

/* ========== FORMS ========== */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
textarea,
select {
    width: 100%;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    padding: 0.875rem 1rem;
    border: 2px solid var(--cmt-gray-200);
    border-radius: var(--radius-md);
    background: var(--cmt-white);
    transition: all 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--cmt-teal);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

/* ========== IMAGES ========== */
.content-card img,
.entry-content img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.featured-image {
    margin-bottom: 1.5rem;
}

.featured-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
}

/* ========== HOMEPAGE LAYOUT ========== */
.homepage-layout {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.now-playing-box {
    background: var(--cmt-white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--cmt-gray-200);
}

.now-playing-box h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--cmt-gray-800);
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--cmt-gray-200);
}

.now-playing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.now-playing-card {
    background: var(--cmt-off-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--cmt-gray-200);
}

.now-playing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--cmt-teal-light);
}

.now-playing-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
}

.now-playing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.now-playing-card:hover .now-playing-image img {
    transform: scale(1.05);
}

.now-playing-content {
    padding: 1.25rem;
    position: relative;
}

.now-playing-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--cmt-orange) 0%, var(--cmt-coral) 100%);
    color: var(--cmt-white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}

.now-playing-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cmt-gray-800);
    margin: 0 0 0.5rem 0;
}

.now-playing-title a {
    color: var(--cmt-gray-800);
    text-decoration: none;
}

.now-playing-title a:hover {
    color: var(--cmt-teal);
}

.now-playing-dates {
    font-size: 0.85rem;
    color: var(--cmt-orange);
    font-weight: 600;
}

.welcome-card {
    animation: fadeIn 0.4s ease-out;
}

.show-card {
    background: var(--cmt-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--cmt-gray-200);
    transition: all 0.3s ease;
}

.show-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--cmt-teal-light);
}

.show-card-image {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.show-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.show-card:hover .show-card-image img {
    transform: scale(1.05);
}

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

.show-card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cmt-gray-800);
    margin: 0 0 0.5rem 0;
}

.show-card-title a {
    color: var(--cmt-gray-800);
    text-decoration: none;
}

.show-card-title a:hover {
    color: var(--cmt-teal);
}

.show-card-dates {
    font-size: 0.9rem;
    color: var(--cmt-orange);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.show-card-excerpt {
    font-size: 0.9rem;
    color: var(--cmt-gray-600);
    line-height: 1.6;
}

/* ========== FOOTER ========== */
.site-footer {
    background: linear-gradient(135deg, var(--cmt-gray-900) 0%, var(--cmt-gray-800) 100%);
    color: var(--cmt-gray-300);
    padding: 3rem 2rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-content a {
    color: var(--cmt-gold-light);
}

.footer-content a:hover {
    color: var(--cmt-white);
}

.footer-title {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--cmt-white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-contact {
    margin: 1.5rem 0;
}

.footer-contact p {
    margin: 0.5rem 0;
}

.footer-links {
    margin: 1.5rem 0;
}

.footer-links a {
    margin: 0 1rem;
}

.footer-copyright {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--cmt-gray-700);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar-right {
        position: relative;
        top: auto;
        max-width: 100%;
        margin: 0;
    }

    .now-playing-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-wrapper {
        padding: 1rem;
    }
    
    .site-title {
        font-size: 1.25rem;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--cmt-teal-darker);
        padding: 5rem 1.5rem 2rem;
        transition: right 0.3s ease;
        z-index: 1000;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .nav-menu a {
        padding: 1rem;
        border-radius: var(--radius-md);
    }
    
    .nav-menu ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0,0,0,0.1);
        margin-top: 0.5rem;
    }
    
    .nav-menu ul a {
        color: var(--cmt-white);
        padding-left: 2rem;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .site-content {
        padding: 1.5rem 1rem;
    }
    
    .content-card {
        padding: 1.5rem;
        border-radius: var(--radius-lg);
    }

    .now-playing-box {
        padding: 1.5rem;
        border-radius: var(--radius-lg);
    }
    
    .page-header {
        padding: 2rem 1rem;
        margin: -1.5rem -1rem 1.5rem -1rem;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    .shows-grid {
        grid-template-columns: 1fr;
    }

    .announcement-banner {
        padding: 0.75rem 1rem;
        flex-direction: column;
        gap: 0.75rem;
    }

    .announcement-content {
        font-size: 0.9rem;
    }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.content-card,
.sidebar-widget {
    animation: fadeIn 0.4s ease-out;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--cmt-gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--cmt-gray-400);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--cmt-teal);
}

/* ========== SELECTION ========== */
::selection {
    background: var(--cmt-teal);
    color: var(--cmt-white);
}

/* ========== PRINT ========== */
@media print {
    .site-header,
    .site-footer,
    .sidebar-right,
    .mobile-menu-toggle {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .content-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* ========== CUSTOM HOMEPAGE STYLES ========== */
/* Import additional fonts for homepage */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;600;700&family=Pacifico&display=swap');

/* Additional color variables for homepage */
:root {
    --primary-teal: #1B9AAA;
    --dark-teal: #0F5C6B;
    --light-blue: #B8E8E8;
    --gold: #FFD700;
    --warm-orange: #FF8C42;
    --cream: #FFF9E6;
    --text-dark: #333333;
}

/* ===== NOW PLAYING SECTION ===== */
.cmt-now-playing {
    position: relative;
    padding: 4rem 2rem;
    margin: 3rem 0;
    text-align: center;
    overflow: hidden;
}

.now-playing-card {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--dark-teal) 100%);
    border-radius: 40px;
    padding: 3.5rem 2.5rem;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 25px 60px rgba(15, 92, 107, 0.35);
    border: 3px solid rgba(255, 215, 0, 0.3);
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.now-playing-card::before,
.now-playing-card::after {
    position: absolute;
    font-size: 2.2rem;
    opacity: 0.25;
    animation: float 5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(35px) rotate(8deg); }
}

.now-playing-card::before {
    content: '🎭 ✨';
    top: 25px;
    right: 40px;
}

.now-playing-card::after {
    content: '✨ 🎭';
    bottom: 25px;
    left: 40px;
    animation-direction: reverse;
}

.now-playing-label {
    font-family: 'Pacifico', cursive;
    font-size: 1.4rem;
    color: var(--gold);
    margin-bottom: 0.8rem;
    animation: wiggle 1s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(-1deg); }
    50% { transform: rotate(1deg); }
}

.now-playing-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--cmt-white);
    margin: 0 0 1rem 0;
}

.now-playing-dates {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    margin-top: 1rem;
}

.now-playing-content {
    position: relative;
    z-index: 2;
    color: white;
}

.now-playing-link {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.8rem 2rem;
    background: var(--warm-orange);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    font-family: 'Fredoka', sans-serif;
}

.now-playing-link:hover {
    background: #FF6B35;
    transform: translateY(-3px);
    color: white;
}

/* ===== SERVICES SECTION ===== */
.cmt-services {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(184, 232, 232, 0.1));
    backdrop-filter: blur(10px);
    border: 2px solid rgba(27, 154, 170, 0.25);
    border-radius: 30px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out both;
    box-shadow: 0 10px 30px rgba(27, 154, 170, 0.08);
    text-align: center;
    font-family: 'Fredoka', sans-serif;
}

.service-card:nth-child(1) { animation-delay: 0.2s; }
.service-card:nth-child(2) { animation-delay: 0.4s; }
.service-card:nth-child(3) { animation-delay: 0.6s; }

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.15), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 55px rgba(255, 140, 66, 0.2);
    border-color: rgba(255, 140, 66, 0.4);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12), rgba(255, 140, 66, 0.1));
}

.service-image {
    width: 100%;
    max-width: 280px;
    height: 200px;
    object-fit: cover;
    border-radius: 20px;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.service-card:hover .service-image {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.service-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-teal);
    position: relative;
    z-index: 2;
}

.service-description {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-weight: 500;
    position: relative;
    z-index: 2;
    font-size: 0.95rem;
}

.cmt-btn-teal {
    display: inline-block;
    padding: 1rem 2.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    font-family: 'Fredoka', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--warm-orange), #FF6B35);
    color: white !important;
    box-shadow: 0 8px 25px rgba(255, 140, 66, 0.35);
    z-index: 2;
}

.cmt-btn-teal::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.4s ease;
    z-index: 0;
}

.cmt-btn-teal:hover::before {
    left: 100%;
}

.cmt-btn-teal:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 45px rgba(255, 140, 66, 0.5);
    color: white !important;
}

/* ===== ABOUT SECTION ===== */
.cmt-about {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #F5FAFB 50%, var(--light-blue) 100%);
    border-radius: 45px;
    margin: 4rem 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeIn 0.8s ease-out 0.8s both;
    border: 3px dashed rgba(27, 154, 170, 0.2);
    position: relative;
    z-index: 2;
    text-align: center;
    font-family: 'Fredoka', sans-serif;
}

.cmt-about h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--primary-teal), var(--warm-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cmt-about p {
    font-size: 1.05rem;
    color: var(--dark-teal);
    line-height: 1.95;
    margin-bottom: 1.5rem;
    font-weight: 500;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.cmt-about hr {
    border: none;
    border-top: 2px solid rgba(27, 154, 170, 0.2);
    max-width: 400px;
    margin: 2rem auto;
}

.about-highlight {
    font-weight: 700;
    color: var(--warm-orange);
}

/* ===== MOBILE RESPONSIVE FOR HOMEPAGE ===== */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        max-width: 450px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .now-playing-card {
        padding: 2.5rem 1.5rem;
        border-radius: 25px;
    }
    
    .now-playing-label {
        font-size: 1.2rem;
    }
    
    .now-playing-title {
        font-size: 1.8rem;
    }
    
    .service-title {
        font-size: 1.5rem;
    }
    
    .cmt-about {
        padding: 3rem 1.5rem;
        margin: 2rem 1rem;
        border-radius: 25px;
    }
    
    .cmt-about h2 {
        font-size: 2rem;
    }
    
    .cmt-services {
        padding: 3rem 1rem;
    }
}

/* ========================================
   UPCOMING PERFORMANCES SECTION (HOMEPAGE)
======================================== */
.cmt-upcoming-performances {
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    padding: 4rem 2rem;
    margin: 3rem auto;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    max-width: 1200px;
}

.cmt-upcoming-performances h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--cmt-teal-darker);
    text-align: center;
    margin-bottom: 2.5rem;
    font-weight: 700;
}

.performances-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.performance-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(8, 145, 178, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.performance-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(8, 145, 178, 0.2);
    border-color: var(--cmt-teal-light);
}

.performance-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--cmt-gray-100);
}

.performance-card-date {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--cmt-teal-dark);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.performance-card-time {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--cmt-gray-600);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.performance-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cmt-gray-900);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.performance-card-title a {
    color: var(--cmt-teal-darker);
    text-decoration: none;
    transition: color 0.3s ease;
}

.performance-card-title a:hover {
    color: var(--cmt-orange);
}

.performance-card-location {
    font-size: 0.9rem;
    color: var(--cmt-gray-600);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 500;
}

.no-performances-message {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.no-performances-message .no-performances-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.no-performances-message p {
    font-size: 1.1rem;
    color: var(--cmt-gray-700);
    margin: 0.5rem 0;
}

.no-performances-message strong {
    color: var(--cmt-teal-dark);
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .cmt-upcoming-performances {
        padding: 3rem 1.5rem;
        margin: 2rem 1rem;
    }
    
    .performances-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    .cmt-upcoming-performances {
        padding: 2rem 1rem;
        border-radius: 20px;
    }
    
    .cmt-upcoming-performances h2 {
        font-size: 2rem;
    }
    
    .performances-grid {
        grid-template-columns: 1fr;
    }
    
    .performance-card {
        padding: 1.25rem;
    }
    
    .performance-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ========== UPCOMING EVENTS SIDEBAR WIDGET (Dynamic Performances) ========== */
/* Match old site format: Date box + Time + Show + Location */

.upcoming-events-widget .sidebar-widget-content {
    padding: 0;
}

.performance-event-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
    align-items: flex-start;
}

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

/* Date Box - Like Old Site (FEB, 7, Sat) */
.performance-date-box {
    background: linear-gradient(135deg, var(--cmt-teal) 0%, var(--cmt-teal-dark) 100%);
    color: white;
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
    min-width: 60px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(27, 154, 170, 0.2);
    font-family: 'Fredoka', sans-serif;
}

.performance-month {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    opacity: 0.9;
}

.performance-day {
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
    margin: 0.3rem 0;
}

.performance-dayname {
    font-size: 0.7rem;
    font-weight: 600;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

/* Event Details */
.performance-event-details {
    flex: 1;
    min-width: 0;
}

.performance-event-time {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--cmt-orange);
    margin-bottom: 0.3rem;
}

.performance-event-show {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.performance-event-show a {
    color: var(--cmt-teal-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.performance-event-show a:hover {
    color: var(--cmt-orange);
    text-decoration: underline;
}

.performance-event-location {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.3rem;
}

