/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e63946;
    --accent-color: #4361ee;
    --accent-color-alt: #3a56d4;
    --text-color: #f1faee;
    --dark-bg: #0a0a14;
    --card-bg: rgba(18, 18, 30, 0.85);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --glow-color: rgba(67, 97, 238, 0.3);
}

body {
    font-family: 'Urbanist', sans-serif;
    background: linear-gradient(135deg, #0a0a14, #121224, #16213e);
    background-size: 400% 400%;
    animation: gradientBackground 30s ease infinite;
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

@keyframes gradientBackground {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
}

/* Background effects */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(67, 97, 238, 0.08), transparent 70%),
                radial-gradient(circle at bottom left, rgba(230, 57, 70, 0.05), transparent 70%);
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="none" width="100" height="100"/><rect fill="rgba(255,255,255,0.02)" width="1" height="1"/></svg>');
    opacity: 0.3;
    z-index: -1;
    pointer-events: none;
}

/* Header styles */
header {
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.logo img {
    max-width: 250px;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(67, 97, 238, 0.6));
    transition: all 0.3s ease;
}

.logo img:hover {
    filter: drop-shadow(0 0 20px rgba(67, 97, 238, 0.8));
    transform: scale(1.02);
}

/* Main content styles */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
}

/* Countdown container styles */
.countdown-container {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 800px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-color),
                0 0 20px var(--glow-color);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.countdown-container:hover {
    box-shadow: 0 15px 40px var(--shadow-color),
                0 0 40px var(--glow-color);
    transform: translateY(-5px);
}

.countdown-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color), var(--accent-color));
    background-size: 200% 100%;
    animation: gradientBorder 3s ease infinite;
    z-index: 2;
}

@keyframes gradientBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Loading overlay styles */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 20, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    border-radius: 20px;
    backdrop-filter: blur(15px);
}

.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loader-circle {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-text {
    margin-top: 1rem;
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: var(--text-color);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Countdown header styles */
.countdown-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.countdown-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 15px rgba(67, 97, 238, 0.6);
    position: relative;
    display: inline-block;
    background: linear-gradient(to right, var(--text-color), #a2d2ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.countdown-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 3px;
}

/* Time badge styles */
.time-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.2), rgba(67, 97, 238, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.5rem 1.5rem;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); }
    50% { box-shadow: 0 4px 20px rgba(67, 97, 238, 0.4); }
    100% { box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); }
}

.time-badge::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(67, 97, 238, 0.4) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.time-badge:hover::after {
    opacity: 1;
}

.badge-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.badge-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
}

.badge-time {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
}

.badge-timezone {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 2px 6px;
    background-color: rgba(67, 97, 238, 0.3);
    border-radius: 4px;
}

/* Badge icon styles */
.badge-content i {
    color: var(--accent-color);
    font-size: 1rem;
}

/* Countdown timer styles */
.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    background: rgba(0, 0, 0, 0.4);
    padding: 1rem;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.time-block::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(67, 97, 238, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.time-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(67, 97, 238, 0.3);
}

.time-block:hover::before {
    opacity: 1;
}

.time-block span:first-child {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-shadow: 0 0 10px rgba(67, 97, 238, 0.5);
}

.time-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
}

.milliseconds {
    min-width: 70px;
}

.milliseconds span:first-child {
    font-size: 1.8rem;
    color: var(--primary-color);
}

/* Episode info styles */
.episode-info {
    text-align: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    margin-top: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(5px);
}

.episode-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.episode-info p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.release-date {
    color: var(--primary-color);
    font-weight: 700 !important;
}

/* Episode badge styles */
.episode-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.2), rgba(67, 97, 238, 0.2));
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.episode-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.episode-badge i {
    color: var(--primary-color);
}

.episode-badge span {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Timezone info styles */
.timezone-info {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}

.timezone-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(67, 97, 238, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    border: 1px solid rgba(67, 97, 238, 0.2);
    transition: all 0.3s ease;
}

.timezone-badge:hover {
    background: rgba(67, 97, 238, 0.2);
    transform: translateY(-2px);
}

.timezone-badge i {
    color: var(--accent-color);
}

.local-time-display {
    font-weight: 700;
    color: var(--text-color);
}

/* Character silhouettes */
.character-silhouette {
    position: fixed;
    bottom: 0;
    height: 80vh;
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.character-silhouette.left {
    left: -100px;
    animation: floatLeft 8s ease-in-out infinite;
}

.character-silhouette.right {
    right: -100px;
    transform: scaleX(-1);
    animation: floatRight 10s ease-in-out infinite;
}

@keyframes floatLeft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes floatRight {
    0%, 100% { transform: scaleX(-1) translateY(0); }
    50% { transform: scaleX(-1) translateY(-15px); }
}

.character-silhouette img {
    height: 100%;
    width: auto;
    filter: drop-shadow(0 0 20px rgba(67, 97, 238, 0.5));
}

/* Footer styles */
footer {
    padding: 2rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    margin-top: 2rem;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.social-link {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(67, 97, 238, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(67, 97, 238, 0.1);
}

.social-link:hover {
    background: rgba(67, 97, 238, 0.3);
    transform: translateY(-3px);
    border-color: rgba(67, 97, 238, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.disclaimer {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    max-width: 600px;
    margin: 0 auto;
}

/* Creator info styles */
.creator-info {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.creator-info i {
    color: var(--primary-color);
    animation: heartbeat 1.5s infinite;
}

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

/* Responsive styles */
@media (max-width: 768px) {
    .countdown-container {
        padding: 1.5rem;
    }
    
    .countdown-header h1 {
        font-size: 1.8rem;
    }
    
    .time-block {
        min-width: 70px;
        padding: 0.8rem;
    }
    
    .time-block span:first-child {
        font-size: 2rem;
    }
    
    .character-silhouette {
        height: 60vh;
    }
    
    .character-silhouette.left {
        left: -150px;
    }
    
    .character-silhouette.right {
        right: -150px;
    }
}

@media (max-width: 480px) {
    .countdown-timer {
        gap: 0.5rem;
    }
    
    .time-block {
        min-width: 60px;
        padding: 0.6rem;
    }
    
    .time-block span:first-child {
        font-size: 1.5rem;
    }
    
    .milliseconds {
        min-width: 50px;
    }
    
    .milliseconds span:first-child {
        font-size: 1.2rem;
    }
    
    .character-silhouette {
        opacity: 0.05;
    }
} 