/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: linear-gradient(135deg, #ffebee 0%, #fce4ec 50%, #f8bbd9 100%);
    min-height: 100vh;
    color: #2c1810;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Header styles */
header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-size: 3rem;
    color: #c62828;
    text-shadow: 2px 2px 4px rgba(198, 40, 40, 0.3);
    margin-bottom: 15px;
    font-weight: 700;
}

.week-indicator {
    background: linear-gradient(45deg, #d32f2f, #e57373);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
}

/* Main content layout */
.content {
    position: relative;
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 80px;
    min-height: 70vh;
}

/* Card styles */
.card {
    background: linear-gradient(135deg, #ffffff 0%, #ffebee 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(198, 40, 40, 0.2);
    border: 3px solid #ffcdd2;
    max-width: 500px;
    min-width: 350px;
    position: relative;
    z-index: 10;
}

.card::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, #f44336, #e91e63, #d32f2f);
    border-radius: 25px;
    z-index: -1;
    opacity: 0.7;
}

.card-content {
    position: relative;
    z-index: 1;
}

.reason-text {
    font-size: 1.8rem;
    color: #b71c1c;
    text-align: center;
    font-weight: 600;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(183, 28, 28, 0.1);
}

/* Image container */
.image-container {
    position: absolute;
    width: 500px;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(198, 40, 40, 0.3);
    border: 4px solid #ffcdd2;
    transition: transform 0.3s ease;
}

.image-container:hover {
    transform: scale(1.05) rotate(2deg);
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-container:hover img {
    transform: scale(1.1);
}

/* Footer */
footer {
    text-align: center;
    color: #ad1457;
    font-size: 1.1rem;
    font-style: italic;
    margin-top: auto;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2.2rem;
    }
    
    .week-indicator {
        font-size: 1rem;
        padding: 6px 15px;
    }
    
    .content {
        flex-direction: column;
        gap: 20px;
    }
    
    .card {
        padding: 25px;
        min-width: 280px;
        max-width: 100%;
    }
    
    .reason-text {
        font-size: 1.4rem;
    }
    
    .image-container {
        position: relative;
        width: 400px;
        height: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .card {
        padding: 20px;
        min-width: 250px;
    }
    
    .reason-text {
        font-size: 1.2rem;
    }
    
    .image-container {
        width: 360px;
        height: 270px;
    }
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .image-container {
    animation: fadeInUp 0.8s ease-out;
}

.card {
    animation-delay: 0.2s;
}

.image-container {
    animation-delay: 0.4s;
}

/* Heart floating animation */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

/* Anniversary Flowers */
.flowers-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    display: none; /* Hidden by default */
}

.flower {
    position: absolute;
    font-size: 2rem;
    opacity: 0;
    animation: flowerFloat 8s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.flower-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 10s;
}

.flower-2 {
    top: 20%;
    right: 15%;
    animation-delay: 1s;
    animation-duration: 12s;
}

.flower-3 {
    top: 30%;
    left: 20%;
    animation-delay: 2s;
    animation-duration: 9s;
}

.flower-4 {
    top: 40%;
    right: 10%;
    animation-delay: 3s;
    animation-duration: 11s;
}

.flower-5 {
    top: 50%;
    left: 15%;
    animation-delay: 4s;
    animation-duration: 10s;
}

.flower-6 {
    top: 60%;
    right: 20%;
    animation-delay: 5s;
    animation-duration: 13s;
}

.flower-7 {
    top: 70%;
    left: 25%;
    animation-delay: 6s;
    animation-duration: 9s;
}

.flower-8 {
    top: 80%;
    right: 25%;
    animation-delay: 7s;
    animation-duration: 11s;
}

@keyframes flowerFloat {
    0%, 100% {
        opacity: 0;
        transform: translateY(100vh) rotate(0deg) scale(0.5);
    }
    10%, 90% {
        opacity: 0.8;
        transform: translateY(90vh) rotate(10deg) scale(0.8);
    }
    20%, 80% {
        opacity: 1;
        transform: translateY(80vh) rotate(-5deg) scale(1);
    }
    30%, 70% {
        opacity: 0.9;
        transform: translateY(70vh) rotate(15deg) scale(0.9);
    }
    40%, 60% {
        opacity: 0.8;
        transform: translateY(60vh) rotate(-10deg) scale(1.1);
    }
    50% {
        opacity: 1;
        transform: translateY(50vh) rotate(0deg) scale(1);
    }
}

/* Enhanced background for anniversary */
body.anniversary {
    background: linear-gradient(135deg, #ffebee 0%, #fce4ec 25%, #f8bbd9 50%, #fce4ec 75%, #ffebee 100%);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}

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

/* Special anniversary message */
.anniversary-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(198, 40, 40, 0.3);
    text-align: center;
    z-index: 1000;
    font-size: 1.5rem;
    color: #c62828;
    font-weight: 600;
    border: 3px solid #ffcdd2;
    animation: messagePulse 2s ease-in-out infinite;
}

/* Enhanced card for anniversary */
body.anniversary .card {
    background: linear-gradient(135deg, #ffffff 0%, #ffebee 25%, #fce4ec 50%, #f8bbd9 75%, #ffebee 100%);
    background-size: 200% 200%;
    animation: cardGlow 4s ease-in-out infinite;
    border: 4px solid #ffcdd2;
}

@keyframes cardGlow {
    0%, 100% { 
        box-shadow: 0 10px 30px rgba(198, 40, 40, 0.2);
        background-position: 0% 50%;
    }
    50% { 
        box-shadow: 0 15px 40px rgba(198, 40, 40, 0.4);
        background-position: 100% 50%;
    }
}

/* Enhanced header for anniversary */
body.anniversary header h1 {
    background: linear-gradient(45deg, #c62828, #e91e63, #d32f2f, #c62828);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textRainbow 3s ease-in-out infinite;
}

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