/* 
 * WIN CELEBRATION PAGE STYLES
 * Celebration page for when she says "Yes"
 */

/* Color variables - celebration theme */
:root {
    --gold-color: #FFD700;
    --silver-color: #C0C0C0;
    --primary-color: #ff4d6d;
    --secondary-color: #ff8fa3;
    --dark-color: #590d22;
    --light-color: #fff0f3;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Raleway', 'Helvetica Neue', sans-serif;
    --safe-area-inset-top: env(safe-area-inset-top);
    --safe-area-inset-bottom: env(safe-area-inset-bottom);
    --safe-area-inset-left: env(safe-area-inset-left);
    --safe-area-inset-right: env(safe-area-inset-right);
}

/* General page styling with iOS safe area support */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    background: linear-gradient(135deg, #ff4d6d 0%, #ff8fa3 50%, #ffccd5 100%);
    color: white;
    line-height: 1.6;
    min-height: 100vh;
    padding: var(--safe-area-inset-top) var(--safe-area-inset-right) var(--safe-area-inset-bottom) var(--safe-area-inset-left);
    overflow-x: hidden;
    transition: background 8s ease-in-out;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    padding-left: calc(20px + var(--safe-area-inset-left));
    padding-right: calc(20px + var(--safe-area-inset-right));
}

/* Celebration section */
.celebration {
    text-align: center;
    padding: 40px 20px;
    position: relative;
    z-index: 10;
}

/* Trophy section */
.trophy {
    margin-bottom: 40px;
    animation: bounce 2s ease infinite;
}

.trophy-icon {
    font-size: 8rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px var(--gold-color));
}

.trophy h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Prize message */
.prize-message {
    margin-bottom: 50px;
}

.prize-message h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.prize-description {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Prize reveal section - Updated to romantic dinner */
.prize-reveal {
    margin-bottom: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.romantic-dinner {
    width: 250px;
    height: 200px;
    margin: 0 auto 30px;
    position: relative;
    perspective: 1000px;
}

.dinner-table {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #8B4513, #A0522D);
    border-radius: 10px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.table-surface {
    width: 90%;
    height: 80%;
    background: #5D4037;
    border-radius: 5px;
    position: relative;
}

.candle {
    position: absolute;
    width: 15px;
    height: 40px;
    background: #FFF;
    border-radius: 7px 7px 0 0;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.flame {
    position: absolute;
    width: 10px;
    height: 20px;
    background: #FF9800;
    border-radius: 50% 50% 20% 20%;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    animation: flicker 1.5s ease-in-out infinite alternate;
    filter: blur(1px);
}

.plate {
    position: absolute;
    width: 60px;
    height: 60px;
    background: #FFF;
    border-radius: 50%;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.rose {
    position: absolute;
    font-size: 2rem;
    color: #ff4d6d;
    bottom: 30px;
    right: 30px;
    animation: float 3s ease-in-out infinite;
}

.prize-reveal h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 15px;
}

.dinner-meaning {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 400px;
    margin: 0 auto;
}

/* Delivery info */
.delivery-info {
    margin-bottom: 50px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.delivery-info h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.delivery-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
}

.delivery-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.2rem;
}

.delivery-item .icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Final message */
.final-message {
    margin-bottom: 40px;
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.signature {
    font-style: italic;
    margin-top: 20px;
    font-size: 1.3rem;
}

/* Celebration buttons */
.celebration-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.btn {
    padding: 15px 30px;
    font-size: 1.2rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    font-weight: bold;
    min-width: 250px;
}

.celebrate-btn {
    background: linear-gradient(45deg, var(--gold-color), #FFA500);
    color: var(--dark-color);
}

.celebrate-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.music-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.music-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Confetti styles */
.confetti {
    position: fixed;
    width: 15px;
    height: 15px;
    background-color: var(--gold-color);
    opacity: 0.8;
    z-index: 1;
    pointer-events: none;
}

/* Animations */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes flicker {
    0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.8; transform: translateX(-50%) scale(1.1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

/* Background color transitions */
@keyframes backgroundCycle {
    0% { background: linear-gradient(135deg, #ff4d6d 0%, #ff8fa3 50%, #ffccd5 100%); }
    25% { background: linear-gradient(135deg, #FFA500 0%, #FFB74D 50%, #FFE0B2 100%); }
    50% { background: linear-gradient(135deg, #ff4d6d 0%, #ff8fa3 50%, #ffccd5 100%); }
    75% { background: linear-gradient(135deg, #9C27B0 0%, #BA68C8 50%, #E1BEE7 100%); }
    100% { background: linear-gradient(135deg, #ff4d6d 0%, #ff8fa3 50%, #ffccd5 100%); }
}

/* Responsive design */
@media (max-width: 768px) {
    .trophy-icon {
        font-size: 6rem;
    }
    
    .trophy h1 {
        font-size: 2.5rem;
    }
    
    .prize-message h2 {
        font-size: 2rem;
    }
    
    .prize-description {
        font-size: 1.1rem;
    }
    
    .delivery-item {
        font-size: 1rem;
    }
    
    .btn {
        font-size: 1.1rem;
        min-width: 200px;
    }
    
    .romantic-dinner {
        width: 200px;
        height: 160px;
    }
}

@media (max-width: 480px) {
    .celebration {
        padding: 20px 10px;
    }
    
    .trophy h1 {
        font-size: 2rem;
    }
    
    .prize-message h2 {
        font-size: 1.8rem;
    }
    
    .delivery-info h3 {
        font-size: 1.5rem;
    }
    
    .celebration-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* iPhone 14 Pro specific optimizations */
@media only screen and (device-width: 393px) and (device-height: 852px) and (-webkit-device-pixel-ratio: 3) {
    .container {
        padding: 15px;
    }
    
    .celebration {
        padding: 30px 15px;
    }
}
