/* 
   Boss Croker's - Premium Irish Pub Theme
   Colors: Deep Emerald, Antique Gold, Rich Black, Cream
*/

:root {
    --color-bg: #050a06;
    --color-surface: #0f1610;
    --color-surface-light: #1a261c;
    --color-primary: #ffcc00;
    /* Antique Gold */
    --color-secondary: #009A49;
    /* Deep Green */
    --color-text: #f0f0f0;
    --color-text-muted: #a0a0a0;

    --font-heading: 'Fraunces', serif;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'Cormorant Garamond', serif;

    --spacing-container: 1200px;
    --container-width: 1200px;
    --header-height: 80px;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: var(--color-bg);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: 0 0 8px 8px;
    z-index: 9999999;
    transition: top 0.3s ease;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--color-secondary);
    outline-offset: 2px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    cursor: url('custom-cursor.png'), auto;
    /* Default Cursor */
}

/* Force custom cursor on clickable elements */
a,
button,
.menu-toggle,
.clickable,
input,
textarea,
select {
    cursor: url('custom-cursor.png'), pointer;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    /* Fraunces looks better extra bold */
    line-height: 1.2;
    color: var(--color-primary);
}

h1 {
    font-size: clamp(3rem, 5vw, 5rem);
}

h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Utilities */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.section-padding {
    padding: 6rem 0;
}

.text-center {
    text-align: center;
}

.text-gold {
    color: var(--color-primary);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(5, 10, 6, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    z-index: 2147483647 !important;
    /* Max Int */
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    position: relative;
    margin: 0 auto;
    position: relative;
    z-index: 2147483647;
    /* absolute max z-index */
    pointer-events: none;
    /* Allow clicks to pass through container, but children need events */
}

/* Re-enable events for children */
.logo-link,
.menu-toggle,
.nav-links {
    pointer-events: auto !important;
}

.logo {
    height: 50px;
    width: auto;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none !important;
    /* Hidden by default, shown in media query */
    font-size: 2rem;
    color: var(--color-primary);
    cursor: pointer;
    z-index: 999999 !important;
    position: relative;
    padding: 10px;
    pointer-events: auto !important;
    touch-action: manipulation;
    flex-shrink: 0;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(5, 10, 6, 0.7),
            rgba(5, 10, 6, 0.4),
            var(--color-bg));
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 1rem;
    animation: fadeUp 1s ease-out;
}

.hero-content h1 {
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.9);
}

.hero-logo-large {
    width: 180px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.9));
}

.hero-subtitle {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 2.5rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--color-primary);
    color: var(--color-bg);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid var(--color-primary);
}

.btn:hover {
    background-color: transparent;
    color: var(--color-primary);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.divider {
    width: 80px;
    height: 3px;
    background-color: var(--color-primary);
    margin: 2rem auto;
}

/* Menu Section */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.menu-card {
    background: var(--color-surface);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.menu-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-gold);
}

.menu-card h3 {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.menu-list {
    list-style: none;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: var(--color-text-muted);
    font-size: 1.1rem;
    transition: color 0.2s;
}

.menu-item:hover {
    color: var(--color-text);
}

/* Wing Menu Specifics */
.wing-card {
    grid-column: 1 / -1;
    background: linear-gradient(145deg, var(--color-surface), rgba(45, 80, 22, 0.4));
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.wing-card:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(0, 154, 73, 0.3);
}

.wing-card h3 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 0.5rem;
    border-bottom: none;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.wing-preview-content {
    text-align: center;
}

.wing-cta {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-primary);
    text-decoration: underline;
}

/* Image Modal */
.modal-overlay {
    background: rgba(0, 0, 0, 0.9);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: none;
    /* Hidden by default */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    /* or block, but flex is better for centering */
    opacity: 1;
}

.modal-content-img {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    animation: zoomIn 0.3s ease;
}

.modal-img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    border: 2px solid var(--color-primary);
}

.modal-close {
    position: absolute;
    top: -40px;
    right: -40px;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--color-primary);
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-content-pdf {
    background-color: var(--card-bg);
    padding: 1rem;
    /* Reduced padding */
    border: 2px solid var(--gold);
    border-radius: 15px;
    width: 95%;
    height: 90vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.9);
    position: relative;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.modal-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    flex-grow: 1;
}

/* Hours & Location */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.info-card {
    background: var(--color-surface-light);
    padding: 3rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.info-text {
    font-size: 1.25rem;
    color: var(--color-text-muted);
}

.info-highlight {
    color: var(--color-primary);
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

/* Footer */
footer {
    background-color: #000;
    padding: 3rem 0;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    color: var(--color-text-muted);
    font-size: 1.5rem;
}

.social-link:hover {
    color: var(--color-primary);
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

/* Location Link */
.info-text a:hover {
    text-decoration: underline !important;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Simple hide for now, could add JS toggle */
    }

    .menu-toggle {
        display: block !important;
        color: var(--color-primary) !important;
        opacity: 1 !important;
        position: relative;
        z-index: 2147483647 !important;
        /* Force top */
        cursor: pointer !important;
        pointer-events: auto !important;
        width: 44px;
        /* Ensure touch target size */
        height: 44px;
        line-height: 44px;
        text-align: center;
        background: transparent;
        border: none;
        font-size: 2rem;
    }

    h1 {
        font-size: 3.5rem;
    }

    .section-padding {
        padding: 4rem 0;
    }
}

/* Instagram Section */
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.insta-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.insta-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.insta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.insta-overlay span {
    color: #fff;
    font-weight: bold;
    font-size: 1.5rem;
}

.insta-item:hover .insta-overlay {
    opacity: 1;
}

.insta-item:hover img {
    transform: scale(1.1);
}

/* Games Section */
.games-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.game-card {
    display: flex;
    align-items: center;
    gap: 3rem;
    background: var(--color-surface);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.game-card-reverse {
    flex-direction: row-reverse;
}

.game-image {
    flex: 1;
    height: 350px;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.game-content {
    flex: 1;
    padding: 2rem;
}

.game-content h3 {
    color: var(--color-primary);
    font-size: 2rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {

    .game-card,
    .game-card-reverse {
        flex-direction: column;
    }



    .game-image {
        width: 100%;
        height: 250px;
    }
}

/* Custom Cursor Removed */

@media (max-width: 768px) {

    /* Disable custom cursor on mobile */
    /* Disable custom cursor on mobile - NUCLEAR OPTION */
    * {
        cursor: auto !important;
    }

    /* Custom cursor logic removed globally */

    /* Mobile Menu Styles */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(5, 10, 6, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        border-bottom: 1px solid rgba(212, 175, 55, 0.2);
        gap: 2rem;
    }

    .nav-links.active {
        display: flex !important;
        position: fixed;
        /* Fix to viewport */
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        /* Full height */
        background: rgba(5, 10, 6, 0.98);
        /* Less transparent */
        z-index: 2147483640;
        /* High Z, but below toggle */
        justify-content: center;
        align-items: center;
        animation: fadeIn 0.3s ease-out;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }
}

/* Perfect Pour Button Effect */
.btn-pour {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.3s ease;
}

.btn-pour:hover {
    color: #f3e5ab;
    /* Cream color text on dark background */
    border-color: #f3e5ab;
}

.btn-pour::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    /* Gradient: Top 15% cream, Bottom 85% dark stout */
    background: linear-gradient(to bottom, #f3e5ab 15%, #1a1a1a 15%);
    z-index: -1;
    transition: height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    /* Smooth pouring animation */
}

.btn-pour:hover::before {
    height: 100%;
}

/* 3D Tilt Menu Cards */
.menu-card {
    /* Existing styles will be inherited, adding 3D props */
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg));
    transition: transform 0.1s ease-out;
    /* Fast transition for responsiveness */
    position: relative;
    overflow: hidden;
    /* Keep shimmer inside */
}

/* Shimmer Effect */
.menu-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(255, 255, 255, 0.1) 0%,
            transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.menu-card:hover::after {
    opacity: 1;
}

/* Custom Pine Wood Scrollbar */
::-webkit-scrollbar {
    width: 16px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
    /* Dark background to contrast with wood */
    border-left: 1px solid #333;
}

::-webkit-scrollbar-thumb {
    background-image: url('pine_wood.png');
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 8px;
    border: 2px solid #1a1a1a;
    /* Border to create separation */
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
    /* Inner shadow for depth */
}

::-webkit-scrollbar-thumb:hover {
    background-color: #d4af37;
    /* Gold tint on hover */
    background-blend-mode: overlay;
}

/* Ambience Toggle */
.ambience-btn {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid #d4af37;
    color: #d4af37;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.ambience-btn:hover {
    background: #d4af37;
    color: #1a1a1a;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.ambience-btn.active {
    background: #d4af37;
    color: #1a1a1a;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.ambience-btn .icon {
    font-size: 1.1rem;
}

/* Toast Generator Modal */
.toast-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.toast-modal.visible {
    opacity: 1;
    pointer-events: auto;
}

.toast-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.toast-card {
    position: relative;
    width: 90%;
    max-width: 500px;
    background: var(--color-surface);
    border: 2px solid var(--color-gold);
    padding: 3rem;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    background-image: radial-gradient(circle at center, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
}

.toast-modal.visible .toast-card {
    transform: translateY(0);
}

.toast-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.toast-close:hover {
    color: var(--color-gold);
}

.toast-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

.toast-title {
    font-family: var(--font-heading);
    color: var(--color-gold);
    font-size: 2rem;
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.toast-text {
    font-family: var(--font-body);
    /* Or a specific serif if desired */
    font-size: 1.3rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    min-height: 100px;
    /* Prevent layout jump */
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Button variants */
.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-gold);
    color: var(--color-gold);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-outline:hover {
    background-color: var(--color-gold);
    color: var(--color-bg);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Darts Game Styles */
.games-modal-content {
    position: relative;
    width: 95%;
    max-width: 600px;
    background: var(--color-surface);
    border: 2px solid var(--color-gold);
    padding: 2rem;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.toast-modal.visible .games-modal-content {
    transform: translateY(0);
}

/* St. Patrick's Day Countdown */
.countdown-banner {
    background: linear-gradient(135deg, #0f3d0f, #1a4a1a);
    padding: 1rem 0;
    border-top: 1px solid var(--color-primary);
    border-bottom: 1px solid var(--color-primary);
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.countdown-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-size: 1.2rem;
    color: var(--color-primary);
    font-family: var(--font-heading);
}

.countdown-timer {
    font-weight: 700;
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
}

.shamrock {
    font-size: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

.shamrock:nth-child(1) {
    animation-delay: 0s;
}

.shamrock:last-child {
    animation-delay: 1.5s;
}

/* St. Patrick's Day Countdown Banner */
.countdown-banner {
    background-color: #009A49;
    /* Irish Green */
    color: #ffffff;
    padding: 2rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    text-align: center;
    border-top: 4px solid var(--color-primary);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.countdown-content h3 {
    margin: 0 0 0.5rem 0;
    font-family: var(--font-heading);
    color: var(--color-primary);
    /* Gold */
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

#countdown-timer {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    min-width: 380px;
    /* Prevent jitter */
}

.shamrock {
    font-size: 3rem;
    animation: floatShamrock 3s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    user-select: none;
}

.shamrock.left {
    animation-delay: 0s;
}

.shamrock.right {
    animation-delay: 1.5s;
}

@keyframes floatShamrock {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateY(-10px) rotate(10deg);
    }
}

@media (max-width: 768px) {
    .countdown-banner {
        flex-direction: row;
        /* Keep row unless very small */
        padding: 1.5rem 0.5rem;
        gap: 1rem;
    }

    #countdown-timer {
        font-size: 1.8rem;
        min-width: auto;
    }

    .shamrock {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .countdown-banner {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Chat Modal Styles */
.chat-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: none;
    justify-content: center;
    align-items: center;
}

.chat-modal.visible {
    display: flex;
}

/* Chat Modal */
.chat-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2147483648;
    /* Higher than navbar (Max Int + 1 logic, though Max Int is limit, sticking to high) */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chat-modal.visible {
    display: flex;
    opacity: 1;
}

.chat-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.chat-card {
    position: relative;
    background: linear-gradient(145deg, var(--color-surface), rgba(20, 40, 25, 0.95));
    border: 2px solid var(--color-primary);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.3);
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.chat-close:hover {
    color: var(--color-primary);
}

.chat-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.mic-indicator {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mic-icon {
    font-size: 3rem;
    z-index: 1;
}

.mic-ring {
    position: absolute;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    opacity: 0;
}

.mic-ring:nth-child(1) {
    width: 60px;
    height: 60px;
}

.mic-ring:nth-child(2) {
    width: 90px;
    height: 90px;
}

.mic-ring:nth-child(3) {
    width: 120px;
    height: 120px;
}

.mic-indicator.connecting .mic-ring {
    animation: pulseRing 1.5s infinite;
    animation-delay: calc(var(--ring-index, 0) * 0.2s);
}

.mic-indicator.connecting .mic-ring:nth-child(1) {
    --ring-index: 0;
}

.mic-indicator.connecting .mic-ring:nth-child(2) {
    --ring-index: 1;
}

.mic-indicator.connecting .mic-ring:nth-child(3) {
    --ring-index: 2;
}

.mic-indicator.active .mic-ring {
    animation: activeRing 1s infinite;
    animation-delay: calc(var(--ring-index, 0) * 0.15s);
}

.mic-indicator.active .mic-ring:nth-child(1) {
    --ring-index: 0;
}

.mic-indicator.active .mic-ring:nth-child(2) {
    --ring-index: 1;
}

.mic-indicator.active .mic-ring:nth-child(3) {
    --ring-index: 2;
}

@keyframes pulseRing {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    50% {
        opacity: 0.2;
    }

    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

@keyframes activeRing {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

.chat-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-primary);
}

.chat-subtitle {
    color: var(--color-text-muted);
    font-style: italic;
}

/* Full Menu Modal (PDF) */
.modal-content-pdf {
    position: relative;
    width: 90%;
    height: 90%;
    max-width: 1200px;
    background: var(--color-surface);
    border: 2px solid var(--color-gold);
    padding: 2rem 1rem 1rem 1rem;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-content-pdf {
    transform: translateY(0);
}

.pdf-frame {
    width: 100%;
    height: 100%;
    border: none;
    background-color: white;
}