﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Lock Screen Styles */
.lock-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2c1810 0%, #1a0f0a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
}

.lock-screen::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 69, 69, 0.1) 0%, transparent 50%);
    animation: pulse-bg 6s ease-in-out infinite;
}

@keyframes pulse-bg {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.5; }
}

.lock-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 50px 40px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 360px;
    width: 90%;
}

.lock-hearts {
    font-size: 3rem;
    margin-bottom: 20px;
}

.lock-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: #d4a574;
    margin-bottom: 8px;
    font-weight: 400;
    letter-spacing: 1px;
}

.lock-subtitle {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 30px;
    font-size: 0.9rem;
    font-weight: 300;
}

.code-input-container {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.code-input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(212, 165, 116, 0.3);
    border-radius: 8px;
    padding: 14px 20px;
    font-size: 1rem;
    color: #fff;
    text-align: center;
    width: 100%;
    max-width: 220px;
    outline: none;
    transition: all 0.3s ease;
}

.code-input.username-input {
    letter-spacing: normal;
}

.code-input:focus {
    border-color: #d4a574;
    box-shadow: 0 0 15px rgba(212, 165, 116, 0.15);
}

.code-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: normal;
}

.unlock-btn {
    background: linear-gradient(145deg, #8b4557, #6b3344);
    border: none;
    padding: 12px 45px;
    font-size: 0.95rem;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(107, 51, 68, 0.25);
    font-family: 'Lato', sans-serif;
    letter-spacing: 2px;
}

.unlock-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(107, 51, 68, 0.35);
}

.lock-hint {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.75rem;
    margin-top: 25px;
    font-style: italic;
}

.error-message {
    color: #c97878;
    margin-top: 15px;
    font-size: 0.85rem;
    min-height: 20px;
}

.lock-screen.unlocking {
    animation: unlock 0.8s ease forwards;
}

@keyframes unlock {
    0% { opacity: 1; }
    100% { opacity: 0; pointer-events: none; }
}

.shake {
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

body {
    font-family: 'Lato', sans-serif;
    background: linear-gradient(165deg, #f8f5f2 0%, #efe8e1 100%);
    min-height: 100vh;
    color: #3d3d3d;
    line-height: 1.7;
}

.container {
    max-width: 850px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header */
.header {
    text-align: center;
    padding: 45px 30px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    margin-bottom: 35px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
}

.title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.6rem;
    color: #4a3535;
    font-weight: 400;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.subtitle {
    font-size: 0.95rem;
    color: #8b7b7b;
    font-weight: 300;
}

/* Countdown */
.countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0 15px;
}

.countdown-item {
    background: #fff;
    padding: 18px 22px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    min-width: 75px;
}

.countdown-item span {
    display: block;
    font-size: 2rem;
    font-weight: 400;
    color: #8b4557;
    font-family: 'Cormorant Garamond', serif;
}

.countdown-item label {
    font-size: 0.7rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-label {
    color: #8b7b7b;
    font-size: 0.9rem;
}

/* Love Meter */
.love-meter {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 35px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
}

.love-meter h2 {
    color: #4a3535;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    margin-bottom: 18px;
    font-weight: 400;
}

.meter-container {
    background: #e8e0d8;
    border-radius: 20px;
    height: 10px;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b4557, #b86b7a);
    border-radius: 20px;
    width: 0%;
    animation: fillMeter 2.5s ease-out forwards;
}

@keyframes fillMeter {
    0% { width: 0%; }
    100% { width: 100%; }
}

.meter-text {
    color: #8b7b7b;
    margin-top: 12px;
    font-size: 0.85rem;
    font-style: italic;
}

/* Surprises Section */
.surprises-section {
    margin-bottom: 35px;
}

.section-title {
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    color: #4a3535;
    margin-bottom: 6px;
    font-weight: 400;
}

.section-subtitle {
    text-align: center;
    color: #8b7b7b;
    margin-bottom: 25px;
    font-size: 0.85rem;
}

.surprises-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
    gap: 14px;
}

.surprise-card {
    background: #fff;
    border-radius: 10px;
    padding: 22px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.surprise-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.surprise-card.locked {
    background: #f5f0eb;
    cursor: not-allowed;
    opacity: 0.6;
}

.surprise-card.locked:hover {
    transform: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.surprise-card.unlocked {
    background: linear-gradient(145deg, #8b4557, #9d5566);
}

.surprise-card.unlocked .day-number,
.surprise-card.unlocked .day-label,
.surprise-card.unlocked .lock-icon {
    color: #fff;
}

.surprise-card.revealed {
    background: #fff;
    border: 1px solid #d4a574;
}

.day-number {
    font-size: 1.6rem;
    font-weight: 400;
    color: #8b4557;
    display: block;
    font-family: 'Cormorant Garamond', serif;
}

.day-label {
    font-size: 0.7rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 3px;
}

.lock-icon {
    font-size: 1rem;
    margin-top: 8px;
    display: block;
}

/* Rose Gallery */
.rose-gallery-section {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 35px 25px;
    margin-bottom: 35px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
}

.rose-gallery-section h2 {
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    color: #4a3535;
    margin-bottom: 6px;
    font-weight: 400;
}

.rose-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.rose-photo {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rose-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.rose-photo:hover img {
    transform: scale(1.04);
}

/* Love Letter */
.love-letter {
    text-align: center;
    margin-bottom: 35px;
}

.letter-envelope {
    display: inline-block;
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
}

.letter-envelope:hover {
    transform: scale(1.02);
}

.envelope-body {
    background: linear-gradient(145deg, #c9976a, #b8865c);
    padding: 30px 45px;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.envelope-flap {
    width: 0;
    height: 0;
    border-left: 45px solid transparent;
    border-right: 45px solid transparent;
    border-top: 25px solid #b8865c;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.envelope-heart {
    font-size: 2rem;
    display: block;
}

.envelope-body p {
    color: rgba(255, 255, 255, 0.9);
    margin-top: 8px;
    font-size: 0.85rem;
}

.letter-content {
    display: none;
    background: #fff;
    padding: 35px;
    border-radius: 10px;
    max-width: 520px;
    margin: 20px auto 0;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    position: relative;
    text-align: left;
    animation: fadeIn 0.4s ease;
}

.letter-content.show {
    display: block;
}

.close-letter {
    position: absolute;
    top: 12px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #aaa;
    cursor: pointer;
}

.close-letter:hover {
    color: #666;
}

.letter-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: #4a3535;
    margin-bottom: 18px;
    font-weight: 400;
}

.letter-content p {
    color: #666;
    line-height: 1.9;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.letter-content .signature {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: #8b4557;
    text-align: right;
    margin-top: 20px;
    font-style: italic;
}

/* Reasons Section */
.reasons-section {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 35px 20px;
    margin-bottom: 35px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
}

.reasons-section h2 {
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: #4a3535;
    margin-bottom: 22px;
    font-weight: 400;
}

.reasons-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.carousel-btn {
    background: #fff;
    border: 1px solid #e0d5cc;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1rem;
    color: #999;
    cursor: pointer;
    transition: all 0.25s ease;
}

.carousel-btn:hover {
    background: #8b4557;
    color: #fff;
    border-color: #8b4557;
}

.reason-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    min-width: 260px;
    max-width: 420px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.reason-number {
    display: inline-block;
    background: linear-gradient(145deg, #8b4557, #9d5566);
    color: #fff;
    width: 36px;
    height: 36px;
    line-height: 36px;
    border-radius: 50%;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.reason-text {
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
    font-style: italic;
}

/* Footer */
.footer {
    text-align: center;
    padding: 25px;
    color: #aaa;
}

.footer p {
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.footer-hearts {
    font-size: 1.3rem;
    opacity: 0.5;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: #fff;
    padding: 35px;
    border-radius: 12px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: scaleIn 0.25s ease;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #aaa;
    cursor: pointer;
}

.modal-close:hover {
    color: #666;
}

.modal-header {
    margin-bottom: 18px;
}

.modal-day {
    display: inline-block;
    background: linear-gradient(145deg, #8b4557, #9d5566);
    color: #fff;
    padding: 6px 22px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.modal-header h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: #4a3535;
    font-weight: 400;
}

.modal-icon {
    font-size: 2.5rem;
    margin: 15px 0;
}

.modal-body p {
    color: #666;
    font-size: 1rem;
    line-height: 1.8;
}

.modal-hearts {
    margin-top: 20px;
    font-size: 1.2rem;
    opacity: 0.5;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.lightbox.show {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 85%;
    border-radius: 4px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.8rem;
    cursor: pointer;
}

.lightbox-close:hover {
    color: #fff;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    padding: 15px 12px;
    cursor: pointer;
    border-radius: 4px;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }

/* Calendar Reminder Buttons */
.calendar-reminders {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0e8e0;
}

.reminder-label {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 12px;
}

.reminder-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.reminder-btn {
    background: #f8f5f2;
    border: 1px solid #e0d5cc;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #666;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Lato', sans-serif;
}

.reminder-btn:hover {
    background: #8b4557;
    color: #fff;
    border-color: #8b4557;
}

/* Responsive */
@media (max-width: 768px) {
    .title { font-size: 2rem; }
    .countdown { gap: 10px; }
    .countdown-item { padding: 14px 16px; min-width: 60px; }
    .countdown-item span { font-size: 1.5rem; }
    .surprises-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
    .surprise-card { padding: 16px 8px; }
    .rose-gallery { grid-template-columns: repeat(2, 1fr); }
    .reason-card { min-width: 200px; padding: 22px; }
    .reminder-buttons { flex-direction: column; gap: 8px; }
}
