/* ============================================
   VALENTÝNSKÁ STRÁNKA - STYLY
   ============================================ */

/* Reset a základní nastavení */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
}

/* ============================================
   OBRAZOVKY
   ============================================ */

.screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.screen.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   OBSAH
   ============================================ */

.content {
    text-align: center;
    padding: 2rem;
    z-index: 10;
}

/* ============================================
   PLOVOUCÍ SRDÍČKA NA POZADÍ
   ============================================ */

.floating-hearts {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.heart {
    position: absolute;
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
    opacity: 0.6;
}

/* Různé pozice a animace pro každé srdíčko */
.heart:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 8s; }
.heart:nth-child(2) { left: 20%; animation-delay: 1s; animation-duration: 7s; }
.heart:nth-child(3) { left: 35%; animation-delay: 2s; animation-duration: 9s; }
.heart:nth-child(4) { left: 50%; animation-delay: 0.5s; animation-duration: 6s; }
.heart:nth-child(5) { left: 65%; animation-delay: 1.5s; animation-duration: 8s; }
.heart:nth-child(6) { left: 75%; animation-delay: 3s; animation-duration: 7s; }
.heart:nth-child(7) { left: 85%; animation-delay: 2.5s; animation-duration: 9s; }
.heart:nth-child(8) { left: 95%; animation-delay: 0.8s; animation-duration: 6s; }

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ============================================
   HLAVNÍ NADPIS
   ============================================ */

.title {
    font-size: clamp(2rem, 8vw, 4rem);
    color: #d63384;
    text-shadow: 
        0 0 10px rgba(214, 51, 132, 0.5),
        0 0 20px rgba(214, 51, 132, 0.3),
        0 0 30px rgba(214, 51, 132, 0.2);
    margin-bottom: 1rem;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        text-shadow: 
            0 0 10px rgba(214, 51, 132, 0.5),
            0 0 20px rgba(214, 51, 132, 0.3),
            0 0 30px rgba(214, 51, 132, 0.2);
    }
    50% {
        text-shadow: 
            0 0 20px rgba(214, 51, 132, 0.8),
            0 0 40px rgba(214, 51, 132, 0.5),
            0 0 60px rgba(214, 51, 132, 0.3);
    }
}

.subtitle {
    font-size: clamp(1rem, 4vw, 1.5rem);
    color: #6c757d;
    margin-bottom: 3rem;
}

/* ============================================
   TLAČÍTKA
   ============================================ */

.buttons-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    font-size: clamp(1rem, 4vw, 1.3rem);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Tlačítko ANO */
.btn-yes {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: white;
    box-shadow: 
        0 4px 15px rgba(238, 90, 90, 0.4),
        0 0 20px rgba(238, 90, 90, 0.2);
}

.btn-yes:hover {
    transform: scale(1.1);
    box-shadow: 
        0 6px 25px rgba(238, 90, 90, 0.6),
        0 0 40px rgba(238, 90, 90, 0.4);
}

.btn-yes:active {
    transform: scale(1.05);
}

/* Tlačítko NE */
.btn-no {
    background: linear-gradient(135deg, #adb5bd, #6c757d);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
    /* Pozice pro přesun tlačítka */
    position: relative;
}

.btn-no.escaping {
    position: fixed;
    transition: left 0.2s ease-out, top 0.2s ease-out;
    z-index: 1000;
}

.btn-no:hover {
    background: linear-gradient(135deg, #6c757d, #495057);
}

/* ============================================
   ZAMILOVANÁ OBRAZOVKA
   ============================================ */

#love-screen {
    background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 50%, #fecfef 100%);
}

.love-content {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.love-title {
    font-size: clamp(3rem, 12vw, 6rem);
    color: white;
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.8),
        0 0 40px rgba(214, 51, 132, 0.6),
        0 0 60px rgba(214, 51, 132, 0.4);
    margin-bottom: 1rem;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.love-text {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    color: white;
    margin-bottom: 2rem;
    animation: fadeIn 1s ease-out 0.3s both;
}

.love-heart {
    font-size: clamp(4rem, 15vw, 8rem);
    animation: heartbeat 1.2s ease-in-out infinite;
    margin: 1rem 0;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1); }
    35% { transform: scale(1); }
    45% { transform: scale(1.15); }
    55% { transform: scale(1); }
}

.love-message {
    font-size: clamp(1rem, 4vw, 1.5rem);
    color: white;
    opacity: 0.9;
    margin-top: 1rem;
    animation: fadeIn 1s ease-out 0.6s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 0.9; }
}

/* ============================================
   EXPLOZE SRDÍČEK
   ============================================ */

.hearts-explosion {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 5;
}

.explosion-heart {
    position: absolute;
    font-size: 2rem;
    animation: explode 3s ease-out forwards;
    opacity: 0;
}

@keyframes explode {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(0.5) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) scale(1.5) rotate(360deg);
    }
}

/* ============================================
   RESPONZIVITA
   ============================================ */

@media (max-width: 600px) {
    .buttons-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .btn {
        padding: 1.2rem 3rem;
        width: 200px;
    }
    
    .content {
        padding: 1rem;
    }
    
    .heart {
        font-size: 1.5rem;
    }
}

/* Zvýšení dotykovosti na mobilech */
@media (hover: none) and (pointer: coarse) {
    .btn {
        padding: 1.3rem 2.8rem;
        min-height: 60px;
    }
}

/* ============================================
   PŘÍSTUPNOST
   ============================================ */

.btn:focus {
    outline: 3px solid rgba(255, 255, 255, 0.8);
    outline-offset: 3px;
}

/* Preferovaný redukovaný pohyb */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
