/* ============================================
   Template 06 - Cosmic Nebula
   ============================================ */

.template-cosmic {
    background: radial-gradient(ellipse at center, #1a1a2e 0%, #0a0a0f 100%);
}

/* Cosmic Stars */
.cosmic-stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.cosmic-stars::before,
.cosmic-stars::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(1px 1px at 10% 20%, white, transparent),
        radial-gradient(1.5px 1.5px at 30% 40%, rgba(255,255,255,0.9), transparent),
        radial-gradient(1px 1px at 50% 60%, white, transparent),
        radial-gradient(2px 2px at 70% 30%, rgba(139,92,246,0.8), transparent),
        radial-gradient(1px 1px at 90% 80%, white, transparent),
        radial-gradient(1.5px 1.5px at 15% 70%, rgba(236,72,153,0.7), transparent),
        radial-gradient(1px 1px at 85% 50%, white, transparent);
    background-size: 250px 250px;
}

.cosmic-stars::after {
    animation: cosmic-drift 100s linear infinite;
}

@keyframes cosmic-drift {
    from { transform: translateX(0); }
    to { transform: translateX(-250px); }
}

/* Logo */
.cosmic-logo {
    filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.4));
}

.cosmic-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: white;
}

/* Cosmic Heading */
.cosmic-heading {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 800;
    text-align: center;
}

.cosmic-text-glow {
    display: block;
    color: white;
    text-shadow: 0 0 40px rgba(139, 92, 246, 0.5);
}

.cosmic-text-gradient {
    display: block;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: cosmic-gradient 5s ease infinite;
}

@keyframes cosmic-gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Cosmic Countdown */
.cosmic-countdown {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.cosmic-item {
    text-align: center;
}

.cosmic-ring {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.1);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 50%;
    position: relative;
    overflow: hidden;
}

.cosmic-ring::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(139, 92, 246, 0.3), transparent);
    animation: cosmic-rotate 3s linear infinite;
}

@keyframes cosmic-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cosmic-item .countdown-value {
    position: relative;
    z-index: 1;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    background: none;
    -webkit-text-fill-color: white;
}

/* Cosmic Form */
.cosmic-form {
    max-width: 400px;
    margin: 2rem auto 0;
}

.cosmic-input {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: white;
}

.cosmic-input:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.btn-cosmic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    border-radius: 0.5rem;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-cosmic:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

/* Cosmic Stats */
.cosmic-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.cosmic-stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #8b5cf6;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.cosmic-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.5), transparent);
}

/* Cosmic Social */
.cosmic-social-link {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.cosmic-social-link:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    border-color: transparent;
}
