/* Christmas Special Page Styling */

/* Christmas color palette */
:root {
    --christmas-red: #c41e3a;
    --christmas-green: #165b33;
    --christmas-gold: #f9b234;
    --christmas-silver: #c0c0c0;
    --christmas-white: #ffffff;
    --christmas-dark-green: #0f3d1f;
    --christmas-light-red: #ff6b6b;
}

/* Page background with subtle Christmas pattern */
body.christmas-page {
    background: linear-gradient(135deg, var(--christmas-dark-green) 0%, var(--christmas-green) 100%);
    position: relative;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Snowflake animation background */
body.christmas-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
    animation: snowfall 20s linear infinite;
}

/* Falling snowflakes */
@keyframes snowfall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
    }
}

/* Christmas header styling */
.christmas-page header {
    background: linear-gradient(90deg, var(--christmas-red) 0%, var(--christmas-light-red) 100%);
    border-bottom: 3px solid var(--christmas-gold);
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

/* Festive logo styling */
.christmas-page .sitelogo a {
    position: relative;
}

.christmas-page .sitelogo a::after {
    content: '🎄';
    position: absolute;
    top: -10px;
    right: -15px;
    font-size: 20px;
    animation: jingle 2s ease-in-out infinite;
}

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

/* Christmas navigation */
.christmas-page .nav-categories {
    background: linear-gradient(90deg, var(--christmas-green) 0%, var(--christmas-dark-green) 100%);
    border-top: 2px solid var(--christmas-gold);
    border-bottom: 2px solid var(--christmas-gold);
}

/* Main content area */
.christmas-page main {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    margin: 20px auto;
    max-width: 1200px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    flex: 1;
    width: calc(100% - 40px);
}

/* Christmas page header */
.christmas-page .page-header {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--christmas-red) 0%, var(--christmas-gold) 50%, var(--christmas-green) 100%);
    border-radius: 20px 20px 0 0;
    position: relative;
    overflow: hidden;
    font-family: 'Georgia', serif;
}

.christmas-page .page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.christmas-page .page-header h1 {
    color: var(--christmas-white);
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
    margin: 0;
    position: relative;
    z-index: 1;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.christmas-page .page-header p {
    color: var(--christmas-white);
    font-size: 1.3rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    margin: 15px 0 0;
    position: relative;
    z-index: 1;
    font-family: 'Arial', sans-serif;
    font-weight: 500;
}

/* Christmas sections */
.christmas-page .section {
    background: linear-gradient(135deg, var(--christmas-white) 0%, #f8f9fa 100%);
    border: 2px solid var(--christmas-gold);
    border-radius: 15px;
    margin: 20px;
    padding-bottom: 20px;
    box-shadow: 0 4px 20px rgba(196, 30, 58, 0.1);
    overflow: hidden;
}

.christmas-page .section-header {
    background: linear-gradient(90deg, var(--christmas-red) 0%, var(--christmas-light-red) 100%);
    color: var(--christmas-white);
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    position: relative;
    border-radius: 0;
}

.christmas-page .section-header::before {
    content: '🎅';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

.christmas-page .section-header::after {
    content: '🎁';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    animation: bounce 2s infinite 0.5s;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(-50%); }
    40% { transform: translateY(-60%); }
    60% { transform: translateY(-55%); }
}

.christmas-page .section-title {
    color: var(--christmas-white);
    background: transparent;
    font-size: 1.5rem;
    font-weight: 700;
}

.christmas-page .view-all {
    background: linear-gradient(135deg, var(--christmas-gold) 0%, #ffb347 100%);
    color: var(--christmas-red);
    font-weight: 700;
    border: 2px solid var(--christmas-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.christmas-page .view-all:hover {
    background: linear-gradient(135deg, var(--christmas-white) 0%, var(--christmas-gold) 100%);
    color: var(--christmas-red);
    transform: scale(1.05);
    transition: all 0.3s ease;
}

/* Game cards Christmas styling */
.christmas-page .gamecard-container {
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 0 0 15px 15px;
}

/* Individual game cards */
.christmas-page .gamecard {
    background: var(--christmas-white);
    border: 2px solid var(--christmas-gold);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

/* Ensure images display properly */
.christmas-page .game-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    position: static;
    top: auto;
    left: auto;
    display: block;
}

.christmas-page .card-image-link {
    display: block;
    position: relative;
    overflow: hidden;
}

/* Card actions and More button */
.christmas-page .card-actions {
    margin-top: 16px;
    margin-bottom: 24px;
    text-align: center;
}

.christmas-page .more-christmas-btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--christmas-gold) 0%, #ffb347 100%);
    color: var(--christmas-red);
    font-weight: 700;
    font-size: 1.05rem;
    border: 3px solid var(--christmas-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.christmas-page .more-christmas-btn:hover {
    background: linear-gradient(135deg, var(--christmas-white) 0%, var(--christmas-gold) 100%);
    color: var(--christmas-red);
    transform: scale(1.05);
    transition: all 0.2s ease;
}

.christmas-page .gamecard:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(196, 30, 58, 0.2);
    border-color: var(--christmas-red);
}

.christmas-page .gamecard::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(249, 178, 52, 0.3), transparent);
    transition: left 0.5s;
}

.christmas-page .gamecard:hover::before {
    left: 100%;
}

/* Christmas footer */
.christmas-page footer {
    background: linear-gradient(135deg, var(--christmas-dark-green) 0%, var(--christmas-green) 100%);
    border-top: 3px solid var(--christmas-gold);
    color: var(--christmas-white);
    position: relative;
}

.christmas-page footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: repeating-linear-gradient(
        45deg,
        var(--christmas-red),
        var(--christmas-red) 10px,
        var(--christmas-white) 10px,
        var(--christmas-white) 20px
    );
}

/* Search bar styling */
.christmas-page .searchbar {
    background: linear-gradient(135deg, var(--christmas-gold) 0%, #ffb347 100%);
    padding: 15px;
    border-radius: 10px;
    margin: 20px;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .christmas-page .page-header h1 {
        font-size: 2rem;
    }
    
    .christmas-page .page-header p {
        font-size: 1rem;
    }
    
    .christmas-page .section-header {
        font-size: 1.2rem;
    }
    
    .christmas-page .section-header::before,
    .christmas-page .section-header::after {
        font-size: 1.2rem;
    }
}

/* Christmas ornaments decoration */
.christmas-page .section::after {
    content: '❄️';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    opacity: 0.6;
    animation: sparkle 3s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Holly decoration for sections */
.christmas-page .section:nth-child(even)::after {
    content: '🎄';
    top: auto;
    bottom: 10px;
    right: 10px;
}

/* Festive button styling */
.christmas-page .google-sign-in-btn {
    background: linear-gradient(135deg, var(--christmas-red) 0%, var(--christmas-light-red) 100%);
    border: 2px solid var(--christmas-gold);
    color: var(--christmas-white);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

.christmas-page .google-sign-in-btn:hover {
    background: linear-gradient(135deg, var(--christmas-gold) 0%, #ffb347 100%);
    color: var(--christmas-red);
    transform: scale(1.05);
    transition: all 0.3s ease;
}
