/* ==================
   GLOBAL STYLES & VARIABLES
   ================== */
:root {
    --dark-bg: #0a0a0a;
    --primary-bg: #1a1a2e;
    --secondary-bg: #16213e;
    --accent-orange: #ff6b35;
    --accent-blue: #00d4ff;
    --text-light: #fff;
    --text-muted: #aaa;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
}

/* ==================
   HERO SECTION
   ================== */
.hero-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f3460 85%, var(--dark-bg) 100%);
    padding: 20px;
    padding-bottom: 80px;
}

/* --- CORRECTED LOGO ROTATOR STYLES --- */

/* 1. The container is set to relative positioning and given an aspect ratio.
      This creates a stable-sized box for the images. */
.logo-rotator {
    position: relative;
    max-width: 800px;
    width: 90%;
    aspect-ratio: 2 / 3; /* Aspect ratio of the portrait-style posters */
    margin-bottom: 20px;
}

/* 2. ALL logos are layered perfectly on top of each other using absolute positioning.
      They are made invisible with opacity: 0 and scaled down. */
.logo-rotator .hero-logo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Prevents images from being stretched or cropped */
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* 3. The .active-logo class is the ONLY thing that changes.
      It makes the current logo visible and scales it to full size. */
.logo-rotator .hero-logo.active-logo {
    opacity: 1;
    transform: scale(1);
}

/* --- END OF ROTATOR STYLES --- */

.hero-subtitle {
    font-size: clamp(1rem, 4vw, 1.8rem);
    color: var(--accent-blue);
    text-shadow: 0 0 5px var(--accent-blue);
    margin-top: 20px;
    margin-bottom: 30px;
    max-width: 800px;
    line-height: 1.5;
}

.host-info {
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 40px;
}

.host-info a, .map-link {
    color: var(--accent-blue);
    text-decoration: none;
    transition: text-shadow 0.3s;
    font-weight: bold;
}

.host-info a:hover, .map-link:hover {
    text-shadow: 0 0 8px var(--accent-blue);
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: var(--accent-orange);
    color: var(--primary-bg);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
    border: 2px solid transparent;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.6);
}

.cta-button.secondary {
    background: transparent;
    color: var(--accent-orange);
    border-color: var(--accent-orange);
    box-shadow: none;
}

.cta-button.secondary:hover {
    background: var(--accent-orange);
    color: var(--primary-bg);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

/* ==================
   PHOTO CAROUSEL STYLES
   ================== */
.carousel-section {
    padding: 80px 0;
    background-color: var(--dark-bg);
    overflow: hidden;
}

.photo-carousel {
    display: flex;
    width: fit-content;
    animation: scroll 40s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-380px * 9 / 2));
    }
}

.carousel-item {
    width: 350px;
    margin: 0 15px;
    flex-shrink: 0;
}

.carousel-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
    border: 2px solid var(--secondary-bg);
}

.carousel-item img:hover {
    transform: scale(1.05);
}

.photo-carousel:hover {
    animation-play-state: paused;
}

/* ==================
   EVENTS SECTION (CALENDAR)
   ================== */
.events-section {
    padding: 80px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--accent-orange);
}

.calendar-wrapper {
    background: linear-gradient(135deg, var(--primary-bg), var(--secondary-bg));
    padding: 30px;
    border-radius: 20px;
    border: 2px solid var(--accent-blue);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.1);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-header h2 {
    font-size: 2rem;
    color: var(--accent-blue);
    text-shadow: 0 0 10px var(--accent-blue);
}

.nav-btn {
    background: var(--secondary-bg);
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: var(--accent-blue);
    color: var(--dark-bg);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.grid-cell {
    text-align: center;
    font-weight: bold;
}

.weekday {
    color: var(--accent-orange);
    padding-bottom: 10px;
}

.day {
    background: #0f3460;
    color: var(--text-light);
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    font-size: 1.1rem;
}

.day.other-month {
    opacity: 0.3;
}

.day.event {
    border: 2px solid var(--accent-orange);
    cursor: pointer;
    color: var(--accent-orange);
}

.day.event:hover {
    transform: scale(1.08);
    box-shadow: 0 0 20px currentColor;
}

.day.today {
   outline: 2px solid var(--text-light);
   outline-offset: 3px;
}

@keyframes rotate-glow {
    0% { background-position: 0% 50%; box-shadow: 0 0 20px var(--accent-blue); }
    50% { background-position: 100% 50%; box-shadow: 0 0 30px #da70d6; }
    100% { background-position: 0% 50%; box-shadow: 0 0 20px var(--accent-blue); }
}

.day.showcase {
    cursor: pointer;
    color: var(--text-light);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent-blue), #9400d3, #da70d6, var(--accent-orange));
    background-size: 400% 400%;
    animation: rotate-glow 8s ease infinite;
}

.day.showcase::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 60%);
    transform: rotate(45deg);
    opacity: 0.5;
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--secondary-bg);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.legend-box {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.legend-box.event {
    background: transparent;
    border: 2px solid var(--accent-orange);
}

.legend-box.showcase {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent-blue), #9400d3, #da70d6, var(--accent-orange));
    background-size: 400% 400%;
    animation: rotate-glow 8s ease infinite;
}

.legend-box.showcase::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 60%);
    opacity: 0.5;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    padding: 40px;
    border-radius: 20px;
    border: 2px solid var(--accent-blue);
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal-overlay.visible .modal-content {
    transform: scale(1);
    opacity: 1;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 2rem;
    cursor: pointer;
}

#modal-title { color: var(--accent-orange); margin-bottom: 10px; }
#modal-date { color: var(--accent-blue); margin-bottom: 20px; font-weight: bold; }
#modal-details ul { list-style: none; padding-left: 0; }
#modal-details li { margin-bottom: 10px; background: rgba(0,0,0,0.2); padding: 10px; border-radius: 5px; border-left: 3px solid var(--accent-orange); }

/* ==================
   REGULARS PAGE STYLES
   ================== */
header {
    background: var(--primary-bg);
    padding: 1rem;
    text-align: center;
    border-bottom: 2px solid var(--accent-blue);
}

header nav a {
    color: var(--text-light);
    text-decoration: none;
    margin: 0 1rem;
    font-size: 1.2rem;
    font-weight: bold;
}

header nav a.active {
    color: var(--accent-orange);
}

.regulars-container {
    max-width: 900px;
    margin: 4rem auto;
    padding: 0 1rem;
}

.regulars-container h1 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2.5rem;
    color: var(--accent-orange);
}

.comic-profile {
    background: linear-gradient(135deg, var(--primary-bg), var(--secondary-bg));
    border: 1px solid var(--accent-blue);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.1);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-blue);
}

.profile-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-header h2 {
    margin: 0;
    font-size: 2.2rem;
    color: var(--text-light);
}

.instagram-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 4px;
    transition: text-shadow 0.3s;
}

.instagram-link:hover {
    text-shadow: 0 0 8px var(--accent-blue);
    text-decoration: underline;
}

.video-gallery h3 {
    color: var(--accent-orange);
    border-bottom: 1px solid var(--secondary-bg);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

footer {
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
    color: var(--text-muted);
    border-top: 1px solid var(--secondary-bg);
}
/* ==================
   UPDATED BUTTON HIERARCHY STYLES
   ================== */

/* On mobile, stack the links vertically */
.nav-links {
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 400px;
}

/* Make the main buttons take up the full width of the container */
.nav-links .cta-button {
    width: 100%;
    text-align: center;
}

/* Style for the 'Meet The Regulars' text link */
.tertiary-link {
    color: #FFD700; /* This is a vibrant gold color */
    text-decoration: none;
    font-weight: bold;
    margin-top: 1rem;
    padding: 8px 16px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.tertiary-link:hover {
    color: #fff; /* Brightens the text on hover */
    background-color: rgba(255, 215, 0, 0.15); /* Adds a subtle gold background */
    text-shadow: 0 0 8px #FFD700; /* Creates a neon glow effect */
}

/* Media Query for larger screens (tablets and desktops) */
@media (min-width: 768px) {
    /* On larger screens, go back to a side-by-side layout */
    .nav-links {
        flex-direction: row;
        align-items: center;
        width: auto;
        max-width: none;
    }

    .nav-links .cta-button {
        width: auto; /* Buttons are no longer full-width */
    }

    .tertiary-link {
        margin-top: 0;
        margin-left: 0.5rem; /* Add a little space */
    }
}
/* ==================
   FOOTER STYLES
   ================== */

footer {
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
    color: var(--text-muted);
    border-top: 1px solid var(--secondary-bg);
}

.creator-credit {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.creator-credit a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.creator-credit a:hover {
    color: var(--accent-blue);
}