/* 
 * COMEDY CORNER - STYLES.CSS
 * Brand Identity: Black, Red/Crimson, White, Gray
 * Typography: Sans-serif system fonts
 * Layout: Clean, boxed, modern
 */

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #000000;
    font-weight: 400;
}

/* Custom scrollbar styling */
::-webkit-scrollbar {
    width: 2px;
}

::-webkit-scrollbar-track {
    background: #000000;
}

::-webkit-scrollbar-thumb {
    background: #dc143c;
    border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: #dc143c;
}

/* Firefox scrollbar styling */
* {
    scrollbar-width: thin;
    scrollbar-color: #dc143c #000000;
}


/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
    color: #dc143c;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    text-align: left;
    color: #cccccc;
}

.hero-text {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: #e0e0e0;
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
    text-align: left;
}

li {
    margin-bottom: 0.5rem;
    color: #cccccc;
}

a {
    color: #dc143c;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover,
a:focus {
    color: #ff1744;
    text-decoration: underline;
}

a:focus {
    outline: 2px solid #dc143c;
    outline-offset: 2px;
}

strong {
    font-weight: 700;
    color: #ffffff;
}

em {
    font-style: italic;
}


/* ==========================================================================
   LAYOUT - CONTAINER & SECTIONS
   ========================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

section {
    padding: 4rem 0;
}

/* Boxed content sections */
.content-box {
    background-color: #1a1a1a;
    border: 1px solid #333333;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 2px;
}


/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

header {
    background-color: #000000;
    border-bottom: 2px solid #dc143c;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo img {
    display: block;
    max-width: 180px;
    height: auto;
}

nav {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

nav a {
    color: #ffffff;
    font-weight: 600;
    padding: 0.5rem 0;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

nav a:hover,
nav a:focus {
    color: #dc143c;
    text-decoration: none;
}


/* ==========================================================================
   HERO SECTION WITH SLIDESHOW
   ========================================================================== */

#hero {
    background-color: #000000;
    padding: 2rem 0;
}

#hero h1 {
    text-align: center;
    margin-bottom: 2rem;
}

.hero-slideshow {
    position: relative;
    max-width: 100%;
    margin: 2rem auto;
    overflow: hidden;
}

.hero-slide {
    display: none;
    width: 100%;
}

.hero-slide.active {
    display: block;
}

.hero-slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* Desktop: Show all three images side by side */
@media screen and (min-width: 769px) {
    .hero-slideshow {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .hero-slide {
        display: block;
    }
    
    .hero-slide img {
        width: 100%;
        height: 300px;
        object-fit: cover;
    }
}

/* Mobile: Slideshow mode */
@media screen and (max-width: 768px) {
    .hero-slideshow {
        position: relative;
    }
    
    .hero-slide {
        display: none;
        animation: fadeIn 0.5s ease-in;
    }
    
    .hero-slide.active {
        display: block;
    }
    
    .hero-slide img {
        width: 100%;
        height: auto;
        min-height: 300px;
        object-fit: cover;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


/* ==========================================================================
   CONTENT SECTIONS
   ========================================================================== */

section {
    border-bottom: 1px solid #000000;
}

section:last-of-type {
    border-bottom: none;
}

#about, #shows, #training, #community {
    background-color: #000000;
}


/* ==========================================================================
   FORMS - MAILING LIST & MAILCHIMP
   ========================================================================== */

.mailing-list-form,
#mc_embed_signup {
    background-color: #1a1a1a;
    border: 2px solid #dc143c;
    padding: 2rem;
    margin: 2rem 0;
}

#mc_embed_signup {
    width: 100% !important;
    max-width: 100% !important;
    background-color: transparent !important;
    clear: none !important;
}

#mc_embed_signup form {
    padding: 0 !important;
}

#mc_embed_signup_scroll {
    width: 100%;
}

.mc-field-group {
    margin-bottom: 1.5rem;
    width: 100%;
}

.mailing-list-form label,
#mc_embed_signup label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff !important;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.mailing-list-form input[type="email"],
.mailing-list-form input[type="text"],
#mc_embed_signup input[type="email"],
#mc_embed_signup input[type="text"],
#mc_embed_signup input.email,
#mc_embed_signup input.text {
    width: 100%;
    max-width: 500px;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #666666 !important;
    background-color: #2a2a2a !important;
    color: #ffffff !important;
    margin-bottom: 0;
    font-family: inherit;
    border-radius: 2px;
}

.mailing-list-form input[type="email"]:focus,
.mailing-list-form input[type="text"]:focus,
#mc_embed_signup input[type="email"]:focus,
#mc_embed_signup input[type="text"]:focus {
    outline: 2px solid #dc143c;
    outline-offset: 2px;
    border-color: #dc143c !important;
}

.mailing-list-form button,
.button,
#mc_embed_signup input[type="submit"],
#mc_embed_signup .button {
    background-color: #dc143c !important;
    color: #ffffff !important;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border: none !important;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    border-radius: 2px;
}

.mailing-list-form button:hover,
.mailing-list-form button:focus,
.button:hover,
.button:focus,
#mc_embed_signup input[type="submit"]:hover,
#mc_embed_signup input[type="submit"]:focus,
#mc_embed_signup .button:hover,
#mc_embed_signup .button:focus {
    background-color: #ff1744 !important;
    text-decoration: none;
}

.mailing-list-form button:focus,
.button:focus,
#mc_embed_signup input[type="submit"]:focus,
#mc_embed_signup .button:focus {
    outline: 2px solid #dc143c;
    outline-offset: 2px;
}

#mc_embed_signup .asterisk {
    color: #dc143c;
    font-weight: bold;
}

#mc_embed_signup .indicates-required {
    display: none;
}

#mc_embed_signup h2 {
    display: none;
}

#mc_embed_signup .foot {
    margin-top: 1rem;
}

#mc_embed_signup .response {
    color: #ffffff;
    padding: 0.75rem;
    margin: 1rem 0;
    border-radius: 2px;
}

#mc_embed_signup #mce-success-response {
    background-color: #2a7a2a;
    border: 1px solid #4a9a4a;
}

#mc_embed_signup #mce-error-response {
    background-color: #7a2a2a;
    border: 1px solid #9a4a4a;
}

.privacy-note {
    font-size: 0.875rem;
    color: #999999;
    margin-top: 1rem;
}


/* ==========================================================================
   EVENTS PAGE
   ========================================================================== */

#events {
    padding: 3rem 0;
}

#events h1 {
    text-align: center;
    margin-bottom: 3rem;
}

.event-poster {
    text-align: center;
    margin: 3rem 0;
}

.ticket-link {
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ticket-link:hover,
.ticket-link:focus {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.5);
}

.ticket-link img {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
}

.poster-caption {
    margin-top: 1rem;
    font-weight: 600;
    color: #dc143c;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.event-details {
    margin: 3rem 0;
    text-align: center;
}

/* QR Codes Grid */
.qr-codes {
    margin: 4rem 0;
    background-color: #1a1a1a;
    padding: 3rem 2rem;
    border: 1px solid #333333;
}

.qr-codes h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.qr-codes > p {
    text-align: center;
    margin-bottom: 2rem;
    color: #cccccc;
}

.qr-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.qr-item {
    text-align: center;
    max-width: 220px;
}

.qr-item img {
    width: 100%;
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto 1rem;
    padding: 0.5rem;
    background-color: #ffffff;
}

.qr-item p {
    font-weight: 600;
    font-size: 0.875rem;
    text-align: center;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.back-to-home {
    text-align: center;
    margin-top: 3rem;
}


/* ==========================================================================
   OPTIONAL SLIDESHOW (HIDDEN BY DEFAULT)
   ========================================================================== */

.hidden {
    display: none;
}

.slideshow {
    position: relative;
    max-width: 800px;
    margin: 2rem auto;
}

.slide {
    display: none;
    width: 100%;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
}

.slide figcaption {
    text-align: center;
    margin-top: 1rem;
    font-style: italic;
    color: #999999;
}

.no-js .slide {
    display: block;
    margin-bottom: 2rem;
}


/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
    background-color: #000000;
    border-top: 2px solid #dc143c;
    color: #cccccc;
    padding: 2rem 0;
    margin-top: 4rem;
}

footer p {
    text-align: center;
    margin-bottom: 0.5rem;
    color: #999999;
}


/* ==========================================================================
   RESPONSIVE - TABLET (768px and below)
   ========================================================================== */

@media screen and (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo img {
        max-width: 150px;
    }
    
    nav {
        width: 100%;
        justify-content: center;
        gap: 1rem;
        font-size: 0.85rem;
        flex-wrap: wrap;
    }
    
    nav a {
        flex: 0 0 auto;
    }
    
    .qr-grid {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
}


/* ==========================================================================
   RESPONSIVE - MOBILE (480px and below)
   ========================================================================== */

@media screen and (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    nav {
        gap: 0.75rem;
        font-size: 0.8rem;
    }
    
    .content-box {
        padding: 1.5rem;
    }
    
    .mailing-list-form {
        padding: 1.5rem;
    }
    
    .mailing-list-form input[type="email"],
    .mailing-list-form button {
        max-width: 100%;
        width: 100%;
    }
    
    .qr-codes {
        padding: 2rem 1rem;
    }
    
    .qr-item {
        max-width: 180px;
    }
    
    .qr-item img {
        max-width: 160px;
    }
}


/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #dc143c;
    color: #ffffff;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

*:focus {
    outline: 2px solid #dc143c;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    header,
    nav,
    footer,
    .mailing-list-form,
    .qr-codes {
        display: none;
    }
    
    body {
        font-size: 12pt;
        color: #000000;
        background: #ffffff;
    }
    
    h1, h2, h3, h4, h5, h6, p, li, strong {
        color: #000000;
    }
    
    a {
        text-decoration: underline;
        color: #000000;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
}
