* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #0a3d62 0%, #1e4d2b 30%, #1a1a2e 70%, #16213e 100%);
    min-height: 100vh;
    color: #333;
    position: relative;
    overflow-x: hidden;
}

/* Animated background bubbles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* Floating pixel dots */
.floating-dots {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.dot {
    position: absolute;
    border-radius: 50%;
    animation: float-up 10s linear infinite;
    top: 100vh; /* Start at bottom of viewport */
}

@keyframes float-up {
    0% {
        transform: translateY(0) scale(0);
        opacity: 0;
        background: rgba(255, 215, 0, 0.8);
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    }
    10% {
        opacity: 0.8;
        transform: translateY(-10vh) scale(1);
        background: rgba(255, 215, 0, 0.8);
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-50vh) scale(1);
        background: rgba(255, 255, 255, 0.6);
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    }
    90% {
        opacity: 0.8;
        transform: translateY(-90vh) scale(1);
        background: rgba(255, 255, 255, 0.8);
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    }
    100% {
        transform: translateY(-110vh) scale(0);
        opacity: 0;
        background: rgba(255, 255, 255, 0.8);
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
}

header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

h1 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.timezone-info {
    background: rgba(255,255,255,0.1);
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 20px;
}

.hero-image {
    margin: 20px 0;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-height: 400px;
    object-fit: cover;
}

.hero-link {
    margin-top: 15px;
    text-align: center;
}

.hero-link a {
    color: #ffd700;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border: 2px solid #ffd700;
    border-radius: 25px;
    display: inline-block;
    background: rgba(255, 215, 0, 0.2);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.hero-link a:hover {
    color: #0d1b2a;
    background: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.5);
    text-shadow: none;
}

.events-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.event-card {
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.4) 0%, rgba(45, 55, 72, 0.4) 100%);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid #d4af37;
    color: #e2e8f0;
    border: 1px solid rgba(74, 85, 104, 0.6);
    backdrop-filter: blur(5px);
}

.event-card {
    cursor: pointer;
    position: relative;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.event-card::after {
    content: "📋 Click to copy Discord timestamp";
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 215, 0, 0.9);
    color: #0d1b2a;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

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

.event-card.past {
    opacity: 0.6;
    border-left-color: #888;
}

.event-card.upcoming {
    border-left-color: #4CAF50;
}

.event-card.urgent {
    border-left-color: #f44336;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
    50% { box-shadow: 0 10px 30px rgba(244, 67, 54, 0.4); }
    100% { box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
}

.event-number {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 10px;
}

.event-location {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #60a5fa;
}

.event-time {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #a0aec0;
}

.event-time.local {
    font-weight: 600;
    color: #60a5fa;
    font-size: 1.2rem;
}

.event-time.utc {
    font-size: 0.9rem;
    color: #718096;
}

.next-event-countdown {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.08) 100%);
    border-radius: 15px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(10px);
}

.countdown-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.countdown-label {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.countdown-timer {
    font-family: 'Courier New', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
    letter-spacing: 2px;
}

.countdown {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffd700;
    text-align: center;
    margin: 10px 0;
    padding: 8px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.event-date {
    font-size: 1rem;
    color: #a0aec0;
    margin-bottom: 5px;
}

.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 10px;
}

.status-badge.past {
    background: rgba(51, 51, 51, 0.8);
    color: #ccc;
    border: 1px solid rgba(204, 204, 204, 0.3);
}

.status-badge.upcoming {
    background: rgba(76, 175, 80, 0.8);
    color: #e8f5e8;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.status-badge.urgent {
    background: rgba(244, 67, 54, 0.8);
    color: #ffebee;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

footer {
    text-align: center;
    color: white;
    opacity: 0.9;
    font-size: 0.9rem;
    margin-top: 20px;
}

footer p {
    margin: 8px 0;
}

#user-timezone {
    color: #00ff88;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .events-container {
        grid-template-columns: 1fr;
    }
    
    .event-card {
        padding: 20px;
    }
}

/* Copy notification styles */
.copy-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #0d1b2a;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 1000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 350px;
    border: 2px solid #0d1b2a;
}

.copy-notification.show {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.notification-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.notification-text {
    flex: 1;
}

.notification-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.notification-message {
    font-size: 0.9rem;
    word-break: break-all;
    line-height: 1.3;
}
