/**
 * Thanksgiving Party Theme Styles
 * Warm autumn atmosphere with harvest colors and elements
 */

[data-theme="thanksgiving"] {
    /* Thanksgiving theme with warm autumn colors */
    --primary-bg: #2d1810;
    --secondary-bg: #3d2518;
    --tertiary-bg: #1a0f08;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-muted: #a0a0a0;
    --accent-color: #d2691e;
    --accent-hover: #b8621c;
    --success-color: #8b4513;
    --warning-color: #daa520;
    --danger-color: #cd853f;
    --info-color: #ff8c00;
    --border-color: #444;
    --shadow-color: rgba(210, 105, 30, 0.3);

    /* Thanksgiving specific colors */
    --harvest-orange: #d2691e;
    --autumn-red: #b22222;
    --golden-yellow: #daa520;
    --pumpkin-orange: #ff7518;
    --cranberry-red: #9f1239;
    --corn-yellow: #f4c430;

    /* Glass morphism variables for Thanksgiving theme */
    --glass-bg: rgba(45, 24, 16, 0.8);
    --glass-border: rgba(210, 105, 30, 0.3);
    --text-white: #ffffff;
    --text-light: #e0e0e0;
    --text-glow: 0 0 15px rgba(210, 105, 30, 0.56);

    /* Additional Thanksgiving colors */
    --neon-pink: #ff69b4;
    --neon-purple: #8b5cf6;
    --neon-blue: #ff8c00;
    --neon-green: #8b4513;
    --neon-yellow: #daa520;
    --neon-orange: #d2691e;
    --neon-red: #b22222;
}

/* Epic Thanksgiving theme background with animations */
html body[data-theme="thanksgiving"],
body[data-theme="thanksgiving"],
[data-theme="thanksgiving"] body {
    background:
        /* Autumn leaves pattern */
        radial-gradient(2px 2px at 20px 30px, #d2691e, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(218, 165, 32, 0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #b22222, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 140, 0, 0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #cd853f, transparent),
        /* Harvest moon glow */
        radial-gradient(circle at 85% 15%, rgba(244, 196, 48, 0.3) 0%, transparent 25%),
        /* Ground mist */
        linear-gradient(to top, rgba(139, 69, 19, 0.4) 0%, transparent 30%),
        /* Distant hills */
        radial-gradient(circle at 50% 90%, rgba(45, 24, 16, 0.3) 0%, transparent 40%),
        /* Base autumn evening sky */
        linear-gradient(180deg, #1a0f08 0%, #2d1810 30%, #3d2518 60%, #2a1810 100%) !important;
    color: var(--text-primary) !important;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    animation: thanksgivingAtmosphere 20s ease-in-out infinite;
}

/* Fix modal scrolling issues - when modal is open, allow scrolling */
[data-theme="thanksgiving"] body.modal-open,
body[data-theme="thanksgiving"].modal-open,
html body[data-theme="thanksgiving"].modal-open {
    overflow: auto !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding-right: 0 !important;
    position: relative !important;
}

/* Enhanced modal styling for Thanksgiving theme */
[data-theme="thanksgiving"] .modal {
    z-index: 1060 !important;
}

[data-theme="thanksgiving"] .modal-backdrop {
    z-index: 1050 !important;
    background: rgba(0, 0, 0, 0.8) !important;
}

[data-theme="thanksgiving"] .modal-dialog {
    margin: 1.75rem auto !important;
    max-height: none !important;
    display: block !important;
    position: relative !important;
    width: auto !important;
    pointer-events: none !important;
}

[data-theme="thanksgiving"] .modal-dialog .modal-content {
    pointer-events: auto !important;
    position: relative !important;
}

[data-theme="thanksgiving"] .modal-content {
    max-height: 80vh !important;
    overflow-y: auto !important;
    background: rgba(45, 24, 16, 0.95) !important;
    border: 2px solid var(--harvest-orange) !important;
    border-radius: 20px !important;
    box-shadow: 0 0 50px rgba(210, 105, 30, 0.56),
                0 0 100px rgba(139, 69, 19, 0.42) !important;
    backdrop-filter: blur(15px) !important;
}

[data-theme="thanksgiving"] .modal-header {
    background: linear-gradient(135deg,
        rgba(210, 105, 30, 0.3),
        rgba(139, 69, 19, 0.2)) !important;
    border-bottom: 1px solid var(--harvest-orange) !important;
    border-radius: 18px 18px 0 0 !important;
}

[data-theme="thanksgiving"] .modal-title {
    color: var(--harvest-orange) !important;
    text-shadow: 0 0 10px rgba(210, 105, 30, 0.56) !important;
}

/* Additional modal scrolling fixes */
html[data-theme="thanksgiving"],
html body[data-theme="thanksgiving"] {
    overflow: auto !important;
    height: auto !important;
}

[data-theme="thanksgiving"] .modal.show {
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

/* Force enable scrolling when any modal is visible */
[data-theme="thanksgiving"] body:has(.modal.show),
[data-theme="thanksgiving"] html:has(.modal.show) {
    overflow: auto !important;
    position: static !important;
}

/* Mystical Thanksgiving atmosphere overlay */
[data-theme="thanksgiving"] body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(210, 105, 30, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 80% 20%, rgba(139, 69, 19, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 40% 40%, rgba(244, 196, 48, 0.05) 0%, transparent 40%);
    pointer-events: none;
    z-index: -2;
    animation: thanksgivingShimmer 15s ease-in-out infinite;
}

@keyframes thanksgivingAtmosphere {
    0%, 100% { filter: brightness(1) hue-rotate(0deg); }
    50% { filter: brightness(1.1) hue-rotate(10deg); }
}

@keyframes thanksgivingShimmer {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Thanksgiving floating text effect */
[data-theme="thanksgiving"] body::after {
    content: '🦃 🍂 🌾 🥧 🍯 🌽 🍂 🦃';
    position: fixed;
    top: -20px;
    left: -100%;
    width: 200%;
    height: 100px;
    font-size: 40px;
    color: rgba(255, 255, 255, 0.1);
    z-index: -1;
    white-space: nowrap;
    overflow: hidden;
    pointer-events: none;
    animation: thanksgivingPartyFloat 50s linear infinite;
    letter-spacing: 100px;
    line-height: 160px;
    text-shadow: 0 0 25px rgba(210, 105, 30, 0.21);
}

@keyframes thanksgivingPartyFloat {
    0% {
        transform: translateX(-100%) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        opacity: 0.1;
    }
    100% {
        transform: translateX(100%) rotate(360deg);
        opacity: 0.3;
    }
}

/* Thanksgiving theme specific styles */
[data-theme="thanksgiving"] .card {
    background: var(--secondary-bg);
    border: 1px solid var(--harvest-orange);
    box-shadow: 0 0 20px rgba(210, 105, 30, 0.21);
    position: relative;
    overflow: hidden;
}

[data-theme="thanksgiving"] .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 30%, rgba(210, 105, 30, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 70% 70%, rgba(139, 69, 19, 0.08) 0%, transparent 50%);
    border-radius: inherit;
    z-index: 0;
    pointer-events: none;
    animation: thanksgivingGlow 2s ease-in-out infinite alternate;
}

@keyframes thanksgivingGlow {
    from { opacity: 0.7; }
    to { opacity: 1; }
}

[data-theme="thanksgiving"] .btn-primary {
    background: linear-gradient(135deg, var(--harvest-orange), var(--autumn-red));
    border: none;
    box-shadow: 0 0 15px rgba(210, 105, 30, 0.35);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.56);
    position: relative;
    overflow: hidden;
}

[data-theme="thanksgiving"] .btn-primary::before {
    content: '🦃';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    opacity: 0.8;
    text-shadow: 0 0 10px rgba(178, 34, 34, 0.56);
    animation: turkeyGlow 2s ease-in-out infinite alternate;
}

[data-theme="thanksgiving"] .btn-primary::after {
    content: '🍂';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    opacity: 0.8;
    text-shadow: 0 0 10px rgba(210, 105, 30, 0.56);
    animation: leafFloat 3s ease-in-out infinite alternate;
}

@keyframes turkeyGlow {
    from { opacity: 0.6; transform: translateY(-50%) scale(1); }
    to { opacity: 1; transform: translateY(-50%) scale(1.1); }
}

@keyframes leafFloat {
    from { opacity: 0.8; transform: translateY(-50%) rotate(0deg); }
    to { opacity: 1; transform: translateY(-50%) rotate(15deg); }
}

[data-theme="thanksgiving"] .btn-primary:hover {
    box-shadow: 0 0 25px rgba(210, 105, 30, 0.56);
    transform: translateY(-2px);
}

/* Thanksgiving decorations */
[data-theme="thanksgiving"] .navbar::before {
    content: '🦃 🍂 🌾 🥧 🍯 🌽';
    position: fixed;
    bottom: -10px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: var(--harvest-orange);
    opacity: 0.7;
    letter-spacing: 25px;
    text-shadow: 0 0 15px rgba(210, 105, 30, 0.56);
    animation: thanksgivingFloat 6s ease-in-out infinite alternate;
}

[data-theme="thanksgiving"] .navbar::after {
    content: '🍂';
    position: fixed;
    top: 10%;
    left: 5%;
    font-size: 2rem;
    color: var(--autumn-red);
    opacity: 0.6;
    animation: leafFall 8s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes thanksgivingFloat {
    from { transform: translateY(0px); opacity: 0.7; }
    to { transform: translateY(-10px); opacity: 1; }
}

@keyframes leafFall {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.6; }
    50% { transform: translateY(20px) rotate(45deg); opacity: 1; }
}

/* Form elements */
[data-theme="thanksgiving"] .form-control {
    background: var(--tertiary-bg);
    border: 1px solid var(--harvest-orange);
    color: var(--text-primary);
    box-shadow: 0 0 10px rgba(210, 105, 30, 0.21);
}

[data-theme="thanksgiving"] .form-control:focus {
    background: var(--tertiary-bg);
    border-color: var(--golden-yellow);
    box-shadow: 0 0 15px rgba(218, 165, 32, 0.35);
}

/* Thanksgiving emojis for headings */
[data-theme="thanksgiving"] h1::before,
[data-theme="thanksgiving"] h2::before,
[data-theme="thanksgiving"] h3::before,
[data-theme="thanksgiving"] h4::before,
[data-theme="thanksgiving"] h5::before,
[data-theme="thanksgiving"] h6::before {
    content: '🦃 ';
    color: var(--autumn-red);
    text-shadow: 0 0 10px rgba(178, 34, 34, 0.56);
    margin-right: 4px;
}

/* Thanksgiving theme glow effects for headings */
[data-theme="thanksgiving"] h1,
[data-theme="thanksgiving"] h2,
[data-theme="thanksgiving"] h3 {
    text-shadow: 0 0 10px var(--harvest-orange);
}

/* Progress bars with Thanksgiving glow */
[data-theme="thanksgiving"] .progress {
    background: var(--tertiary-bg);
    border: 1px solid var(--harvest-orange);
    overflow: hidden;
}

[data-theme="thanksgiving"] .progress::before {
    content: '🦃 🍂 🌾 🥧 🍯 🌽';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    font-size: 8px;
    line-height: 20px;
    opacity: 0.1;
    animation: thanksgivingProgressPattern 10s linear infinite;
    z-index: 0;
}

[data-theme="thanksgiving"] .progress-bar {
    background: linear-gradient(90deg,
        var(--harvest-orange) 0%,
        var(--golden-yellow) 50%,
        var(--autumn-red) 100%);
    box-shadow:
        0 0 15px rgba(210, 105, 30, 0.56),
        inset 0 2px 4px rgba(255, 255, 255, 0.21);
    border-radius: 8px;
    position: relative;
    z-index: 1;
    animation: thanksgivingProgressGlow 2s ease-in-out infinite alternate;
}

@keyframes thanksgivingProgressPattern {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes thanksgivingProgressGlow {
    from { box-shadow: 0 0 15px rgba(210, 105, 30, 0.56); }
    to { box-shadow: 0 0 25px rgba(218, 165, 32, 0.7); }
}

/* Tables with Thanksgiving styling */
[data-theme="thanksgiving"] .table {
    color: var(--text-primary);
}

[data-theme="thanksgiving"] .table-striped tbody tr:nth-of-type(odd) {
    background: rgba(210, 105, 30, 0.1);
}

/* Alerts with Thanksgiving styling */
[data-theme="thanksgiving"] .alert-success {
    background: rgba(139, 69, 19, 0.2);
    border-color: var(--success-color);
    color: var(--success-color);
    box-shadow: 0 0 15px rgba(139, 69, 19, 0.21);
}

[data-theme="thanksgiving"] .alert-warning {
    background: rgba(218, 165, 32, 0.2);
    border-color: var(--golden-yellow);
    color: var(--golden-yellow);
    box-shadow: 0 0 15px rgba(218, 165, 32, 0.21);
}

[data-theme="thanksgiving"] .alert-danger {
    background: rgba(178, 34, 34, 0.2);
    border-color: var(--autumn-red);
    color: var(--autumn-red);
    box-shadow: 0 0 15px rgba(178, 34, 34, 0.21);
}

/* Countdown and timers */
[data-theme="thanksgiving"] #countdown {
    color: var(--harvest-orange) !important;
    text-shadow: 0 0 20px rgba(210, 105, 30, 0.7);
    animation: thanksgivingCountdownPulse 2s ease-in-out infinite alternate;
}

@keyframes thanksgivingCountdownPulse {
    0% {
        text-shadow: 0 0 20px rgba(210, 105, 30, 0.7), 0 0 40px rgba(210, 105, 30, 0.56);
        transform: scale(1);
    }
    100% {
        text-shadow: 0 0 30px rgba(210, 105, 30, 0.7), 0 0 60px rgba(210, 105, 30, 0.7);
        transform: scale(1.05);
    }
}

/* Cards and containers */
[data-theme="thanksgiving"] .glass-card {
    background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--tertiary-bg) 100%);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    box-shadow: 0 0 30px rgba(210, 105, 30, 0.28);
    text-shadow: 0 0 10px rgba(210, 105, 30, 0.56);
}

/* Scrollbars */
[data-theme="thanksgiving"] ::-webkit-scrollbar-track {
    background: var(--tertiary-bg);
}

[data-theme="thanksgiving"] ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--harvest-orange), var(--autumn-red));
    border-radius: 4px;
}

[data-theme="thanksgiving"] ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--golden-yellow), var(--harvest-orange));
}

/* Links */
[data-theme="thanksgiving"] a {
    color: var(--golden-yellow);
    text-shadow: 0 0 5px rgba(218, 165, 32, 0.21);
}

[data-theme="thanksgiving"] a:hover {
    color: var(--harvest-orange);
    text-shadow: 0 0 8px rgba(210, 105, 30, 0.35);
}

/* Additional Thanksgiving floating creatures - 20x More! */
[data-theme="thanksgiving"] .container::before {
    content: '🦃';
    position: fixed;
    top: 15%;
    left: 85%;
    font-size: 3rem;
    pointer-events: none;
    z-index: -1;
    animation: randomFloat15 12s ease-in-out infinite;
    opacity: 0.7;
}

[data-theme="thanksgiving"] .container::after {
    content: '🍂';
    position: fixed;
    top: 65%;
    left: 90%;
    font-size: 2.5rem;
    pointer-events: none;
    z-index: -1;
    animation: randomFloat16 15s ease-in-out infinite;
    opacity: 0.6;
}

[data-theme="thanksgiving"] .row::before {
    content: '🌾';
    position: fixed;
    top: 25%;
    left: 8%;
    font-size: 2rem;
    pointer-events: none;
    z-index: -1;
    animation: randomFloat17 18s ease-in-out infinite;
    opacity: 0.5;
}

[data-theme="thanksgiving"] .row::after {
    content: '🥧';
    position: fixed;
    top: 55%;
    left: 75%;
    font-size: 3.5rem;
    pointer-events: none;
    z-index: -1;
    animation: randomFloat18 20s ease-in-out infinite;
    opacity: 0.4;
}

[data-theme="thanksgiving"] .col::before {
    content: '🍯';
    position: fixed;
    top: 45%;
    left: 95%;
    font-size: 2.8rem;
    pointer-events: none;
    z-index: -1;
    animation: randomFloat19 16s ease-in-out infinite;
    opacity: 0.6;
}

[data-theme="thanksgiving"] .col::after {
    content: '🌽';
    position: fixed;
    top: 75%;
    left: 12%;
    font-size: 2.3rem;
    pointer-events: none;
    z-index: -1;
    animation: randomFloat20 14s ease-in-out infinite;
    opacity: 0.7;
}

/* Random Float Animations */
@keyframes randomFloat15 {
    0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg) scale(1); }
    25% { transform: translateY(-50px) translateX(40px) rotate(15deg) scale(1.1); }
    75% { transform: translateY(30px) translateX(-25px) rotate(-20deg) scale(0.9); }
}

@keyframes randomFloat16 {
    0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg) scale(1); }
    40% { transform: translateY(-35px) translateX(-40px) rotate(-25deg) scale(1.3); }
    80% { transform: translateY(45px) translateX(20px) rotate(30deg) scale(0.7); }
}

@keyframes randomFloat17 {
    0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg) scale(1); }
    35% { transform: translateY(-65px) translateX(30px) rotate(40deg) scale(1.2); }
    65% { transform: translateY(25px) translateX(-35px) rotate(-15deg) scale(0.8); }
}

@keyframes randomFloat18 {
    0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg) scale(1); }
    20% { transform: translateY(-40px) translateX(-30px) rotate(-30deg) scale(1.4); }
    60% { transform: translateY(50px) translateX(35px) rotate(25deg) scale(0.6); }
}

@keyframes randomFloat19 {
    0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg) scale(1); }
    50% { transform: translateY(-55px) translateX(15px) rotate(35deg) scale(1.1); }
    90% { transform: translateY(35px) translateX(-40px) rotate(-40deg) scale(0.9); }
}

@keyframes randomFloat20 {
    0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg) scale(1); }
    30% { transform: translateY(-45px) translateX(-20px) rotate(-20deg) scale(1.3); }
    70% { transform: translateY(40px) translateX(30px) rotate(35deg) scale(0.7); }
}

