/*
Theme Name: Xealie
Theme URI: https://example.com/xealie
Author: Xealie
Author URI: https://example.com
Description: A dark, ominous landing page theme with a mysterious countdown timer.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: xealie
*/

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

html, body {
    height: 100%;
}

body {
    font-family: 'Cinzel', 'Times New Roman', serif;
    background-color: #000000;
    color: #e8e8e8;
    overflow: hidden;
    line-height: 1.6;
}

/* Fullwidth Background Image */
.xealie-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Main Container */
.xealie-container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 100vh;
    padding-bottom: 4rem;
}

/* Countdown Container */
.countdown-container {
    text-align: center;
    padding: 1.5rem 2.5rem;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(139, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: containerPulse 5s ease-in-out infinite;
}

@keyframes containerPulse {
    0%, 100% {
        border-color: rgba(139, 0, 0, 0.4);
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    }
    50% {
        border-color: rgba(139, 0, 0, 0.6);
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.9), 0 0 20px rgba(139, 0, 0, 0.2);
    }
}

/* Countdown Timer */
.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.countdown-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
    padding: 0.75rem 1rem;
}

.countdown-number {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.3),
        0 0 20px rgba(139, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.countdown-number.changing {
    animation: numberChange 0.3s ease;
}

@keyframes numberChange {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; color: #8b0000; }
    100% { transform: scale(1); opacity: 1; }
}

.countdown-unit {
    font-size: clamp(0.6rem, 1.2vw, 0.75rem);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #666666;
    margin-top: 0.4rem;
}

/* Separator */
.countdown-separator {
    font-size: 2.5rem;
    color: #8b0000;
    animation: separatorPulse 1s ease-in-out infinite;
    margin-bottom: 1.2rem;
}

@keyframes separatorPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Event passed state */
.countdown-passed {
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: #8b0000;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    padding: 1rem 2rem;
    animation: passedGlow 2s ease-in-out infinite;
}

@keyframes passedGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(139, 0, 0, 0.5);
    }
    50% {
        text-shadow: 0 0 30px rgba(139, 0, 0, 0.8), 0 0 60px rgba(139, 0, 0, 0.4);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .xealie-container {
        padding-bottom: 3rem;
    }

    .countdown-container {
        padding: 1rem 1.5rem;
    }

    .countdown-timer {
        gap: 0.25rem;
    }

    .countdown-segment {
        min-width: 55px;
        padding: 0.5rem 0.75rem;
    }

    .countdown-separator {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
}

@media (max-width: 480px) {
    .countdown-segment {
        min-width: 45px;
        padding: 0.4rem 0.5rem;
    }

    .countdown-separator {
        display: none;
    }

    .countdown-timer {
        gap: 0.5rem;
    }
}
