/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe0e6 50%, #fff0f5 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Анимированные сердечки на фоне */
.hearts-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.heart {
    position: absolute;
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
    opacity: 0.1;
}

.heart1 { top: 10%; left: 10%; animation-delay: 0s; }
.heart2 { top: 20%; right: 10%; animation-delay: 1s; }
.heart3 { top: 40%; left: 20%; animation-delay: 2s; }
.heart4 { top: 60%; right: 20%; animation-delay: 3s; }
.heart5 { top: 80%; left: 15%; animation-delay: 4s; }
.heart6 { top: 30%; left: 80%; animation-delay: 5s; }
.heart7 { top: 70%; left: 70%; animation-delay: 6s; }
.heart8 { top: 50%; left: 50%; animation-delay: 2.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Основной контейнер */
.container {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Стили для формы */
.form-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(255, 182, 193, 0.3);
    border: 2px solid rgba(255, 192, 203, 0.2);
    animation: slideUp 1s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.title {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    color: #d63384;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(214, 51, 132, 0.2);
}

.title .emoji {
    font-size: 2rem;
    vertical-align: middle;
    margin-left: 10px;
}

.subtitle {
    font-size: 1.3rem;
    color: #8d5a97;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Стили для формы ввода */
.date-form {
    max-width: 400px;
    margin: 0 auto;
}

.input-group {
    position: relative;
    margin-bottom: 30px;
}

.input-group label {
    display: block;
    font-size: 1.1rem;
    color: #8d5a97;
    margin-bottom: 10px;
    font-weight: 600;
}

.input-group input {
    width: 100%;
    padding: 18px 24px;
    font-size: 1.2rem;
    border: 3px solid #ffc0cb;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.9);
    color: #8d5a97;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    outline: none;
}

.input-group input:focus {
    border-color: #d63384;
    box-shadow: 0 0 20px rgba(214, 51, 132, 0.3);
    transform: scale(1.02);
}

.input-group input::placeholder {
    color: #c8a2c8;
    font-style: italic;
}

.input-hint {
    font-size: 0.9rem;
    color: #c8a2c8;
    margin-top: 8px;
    font-style: italic;
}

.input-group.focused input {
    border-color: #d63384;
    box-shadow: 0 0 20px rgba(214, 51, 132, 0.3);
}

/* Кнопка отправки */
.submit-btn {
    background: linear-gradient(135deg, #ff6b9d 0%, #d63384 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(214, 51, 132, 0.3);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(214, 51, 132, 0.4);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.btn-text {
    display: inline-block;
    transition: transform 0.3s ease;
}

.btn-hearts {
    margin-left: 10px;
    display: inline-block;
    animation: pulse 1.5s infinite;
}

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

/* Сообщение об ошибке */
.error-message {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    padding: 15px;
    border-radius: 15px;
    margin: 20px 0;
    border: 2px solid rgba(220, 53, 69, 0.2);
    font-weight: 500;
}

/* Стили для видео контейнера */
.video-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 50px 30px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(255, 182, 193, 0.3);
    border: 2px solid rgba(255, 192, 203, 0.2);
    animation: slideUp 1s ease-out;
}

.video-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: #d63384;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(214, 51, 132, 0.2);
}

.video-title .emoji {
    font-size: 1.8rem;
    vertical-align: middle;
}

.video-subtitle {
    font-size: 1.2rem;
    color: #8d5a97;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Видео обертка */
.video-wrapper {
    position: relative;
    margin: 30px auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(214, 51, 132, 0.2);
    background: #000;
    display: inline-block;
    max-width: 90vw;
    max-height: 80vh;
}

.anniversary-video {
    display: block;
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 20px;
    object-fit: contain;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .video-wrapper {
        margin: 20px auto;
        border-radius: 15px;
        max-width: 95vw;
        max-height: 70vh;
    }
    
    .anniversary-video {
        border-radius: 15px;
        max-width: 95vw;
        max-height: 70vh;
    }
}

@media (max-width: 480px) {
    .video-wrapper {
        margin: 15px auto;
        border-radius: 10px;
        max-width: 98vw;
        max-height: 60vh;
    }
    
    .anniversary-video {
        border-radius: 10px;
        max-width: 98vw;
        max-height: 60vh;
    }
}

/* Сообщение с любовью */
.love-message {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe0e6 100%);
    padding: 30px;
    border-radius: 20px;
    margin: 30px 0;
    border: 2px solid rgba(255, 192, 203, 0.3);
}

.love-message h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: #d63384;
    margin-bottom: 20px;
}

.love-message p {
    font-size: 1.1rem;
    color: #8d5a97;
    line-height: 1.7;
    margin-bottom: 20px;
}

.anniversary-date {
    font-size: 1.5rem;
    font-weight: 700;
    color: #d63384;
    background: rgba(255, 255, 255, 0.8);
    padding: 15px 30px;
    border-radius: 15px;
    display: inline-block;
    border: 2px solid #ffc0cb;
}

/* Кнопка "Назад" */
.back-btn {
    background: linear-gradient(135deg, #c084fc 0%, #a855f7 100%);
    color: white;
    border: none;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.3);
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(168, 85, 247, 0.4);
}

.anniversary-link {
    display: inline-block;
    margin-top: 16px;
    padding: 12px 30px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff9ad5 0%, #ff6fb1 100%);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 8px 24px rgba(255, 111, 177, 0.45);
    transition: all 0.25s ease;
}

.anniversary-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 111, 177, 0.6);
    color: #ffffff;
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 15px 10px;
        align-items: flex-start;
    }
    
    .form-container,
    .video-container {
        padding: 32px 20px;
        border-radius: 20px;
    }
    
    .title,
    .video-title {
        font-size: 2.4rem;
    }
    
    .subtitle,
    .video-subtitle {
        font-size: 1.1rem;
    }
    
    .heart {
        font-size: 1.5rem;
    }
    
    .love-message {
        padding: 20px;
    }
    
    .love-message h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .title,
    .video-title {
        font-size: 2rem;
    }
    
    .subtitle,
    .video-subtitle {
        font-size: 1rem;
    }
    
    .form-container,
    .video-container {
        padding: 26px 16px;
    }
}
