/* Theme Toggle Styles */
.theme-toggle-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.theme-toggle {
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}

.theme-icon {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

/* Dark theme toggle styling */
[data-theme="dark"] .theme-toggle {
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

[data-theme="dark"] .theme-toggle:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.hero-section {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, #ffeaa7, #fab1a0, #fd79a8);
    border-radius: 20px;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .hero-section {
    background: linear-gradient(135deg, #2d1b69, #11998e, #38ada9);
}

[data-theme="light"] .nav-title {
    color: #000;
}

[data-theme="light"] .nav-title:hover {
    color: #ff69b4;
}

[data-theme="light"] h2 {
    color: #c44569;
}

[data-theme="light"] a {
    color: #c44569;
}

[data-theme="light"] .nav-title:hover {
    color: #ff69b4;
}

.romantic-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 1rem;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 2px 2px 4px rgba(0,0,0,0.3), 0 0 10px rgba(255,255,255,0.3); }
    to { text-shadow: 2px 2px 4px rgba(0,0,0,0.3), 0 0 20px rgba(255,255,255,0.5); }
}

.sparkle {
    animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
}

.love-message {
    font-size: 1.3rem;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    margin: 0;
}

/* Hearts Decorations */
.hearts-decoration {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1rem 0;
}

.hearts-decoration.bottom {
    margin-top: 2rem;
}

.heart-deco {
    font-size: 2rem;
    animation: bounce 2s infinite;
    animation-delay: calc(var(--i) * 0.3s);
}

.heart-deco:nth-child(1) { --i: 0; }
.heart-deco:nth-child(2) { --i: 1; }
.heart-deco:nth-child(3) { --i: 2; }

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Floating Hearts Animation */
.floating-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-hearts .heart {
    position: absolute;
    font-size: 2rem;
    opacity: 0.7;
    animation: float 6s infinite linear;
}

.floating-hearts .heart:nth-child(1) { left: 10%; animation-delay: 0s; }
.floating-hearts .heart:nth-child(2) { left: 20%; animation-delay: 1s; }
.floating-hearts .heart:nth-child(3) { left: 30%; animation-delay: 2s; }
.floating-hearts .heart:nth-child(4) { left: 40%; animation-delay: 3s; }
.floating-hearts .heart:nth-child(5) { left: 60%; animation-delay: 4s; }
.floating-hearts .heart:nth-child(6) { left: 80%; animation-delay: 5s; }

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Fireworks Animation */
.fireworks-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.firework-explosion {
    position: absolute;
    width: 10px;
    height: 10px;
}

.firework-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color), 0 0 20px var(--color);
    animation: explode 1.5s ease-out forwards;
    animation-delay: var(--delay);
    opacity: 0;
}

@keyframes explode {
    0% {
        transform: translate(0, 0) scale(0);
        opacity: 1;
    }
    20% {
        opacity: 1;
    }
    100% {
        transform: translate(
            calc(cos(var(--angle)) * 180px),
            calc(sin(var(--angle)) * 180px)
        ) scale(1);
        opacity: 0;
    }
}

/* Love Notes Section */
.love-notes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.love-note {
    background: linear-gradient(135deg, #ffe4e6, #fce4ec);
    border: 2px solid #f8bbd9;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(248, 187, 217, 0.3);
    transform: rotate(-1deg);
    transition: all 0.3s ease;
}

.love-note:nth-child(even) {
    transform: rotate(1deg);
}

.love-note:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 12px 35px rgba(248, 187, 217, 0.4);
}

[data-theme="dark"] .love-note {
    background: linear-gradient(135deg, #2a1810, #3a2a47);
    border-color: #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

[data-theme="dark"] .love-note:hover {
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.love-note h3 {
    color: #c44569;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

[data-theme="dark"] .love-note h3 {
    color: #667eea;
}

.love-note p {
    color: #2d3436;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

[data-theme="dark"] .love-note p {
    color: #ddd;
}

/* Bible verse card styles */
.bible-verse-card {
    position: relative;
}

.verse-language-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.verse-heading {
    margin: 0;
}

.verse-lang-btn {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 0.4rem 0.9rem;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(116, 185, 255, 0.3);
}

.verse-lang-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(116, 185, 255, 0.4);
}

[data-theme="dark"] .verse-lang-btn {
    background: linear-gradient(135deg, #fdcb6e, #e17055);
    box-shadow: 0 2px 8px rgba(253, 203, 110, 0.3);
}

[data-theme="dark"] .verse-lang-btn:hover {
    box-shadow: 0 4px 12px rgba(253, 203, 110, 0.4);
}

.verse-lang-text {
    display: inline-block;
}

/* Bible verse styles */
.bible-verse {
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.bible-reference {
    font-size: 0.95rem;
    font-weight: 600;
    text-align: right;
    margin: 0;
    opacity: 0.8;
}

/* YouTube video container styles */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin: 1rem 0;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

/* Password form styles */
.password-container {
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 300px;
}

#password-input {
    padding: 0.5rem;
    border: 1px solid #f8bbd9;
    border-radius: 8px;
    font-size: 1rem;
    width: 100%;
    background: linear-gradient(135deg, #ffe4e6, #fce4ec);
}

#submit-password {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    width: fit-content;
    transition: all 0.3s ease;
}

#submit-password:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
}

/* Password error message */
#password-error {
    color: hotpink;
    display: none;
}

/* Dark theme for password form */
[data-theme="dark"] #password-input {
    background: linear-gradient(135deg, #2a1810, #3a2a47);
    border-color: #667eea;
    color: #fff;
}

[data-theme="dark"] #submit-password {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

[data-theme="dark"] #submit-password:hover {
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Global dark theme */
[data-theme="dark"] {
    --color-text-primary: #eee;
    --color-text-secondary: #ccc;
    --color-text-muted: #aaa;
    --color-background: #1a1a2e;
    --color-border: #16213e;
}

[data-theme="dark"] body {
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    background-attachment: fixed;
}

[data-theme="dark"] .container {
    background: rgba(26, 26, 46, 0.8);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

/* Light theme enhancements */
[data-theme="light"] body {
    background: linear-gradient(135deg, #ffeaa7, #fab1a0, #fd79a8, #e17055);
    background-attachment: fixed;
}

[data-theme="light"] .container {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(255, 107, 157, 0.2);
}

[data-theme="light"] {
    --color-text-primary: #000;
    --color-text-secondary: #1a1a2e;
    /* --color-text-muted: #aaa;
    --color-background: #1a1a2e;
    --color-border: #16213e; */
}

/* Footer update text styles */
.spontaneous-update {
    font-size: 0.9rem;
    margin-top: 1.5rem;
    color: var(--color-text-muted);
    font-style: italic;
}

.last-update {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    color: var(--color-text-muted);
}

@media (min-width: 600px) {
    .password-container {
        flex-direction: row;
    }
}

@media (max-width: 768px) {
    .romantic-title {
        font-size: 1.8rem;
    }

    .love-notes {
        grid-template-columns: 1fr;
    }

    .hearts-decoration {
        gap: 1rem;
    }

    .heart-deco {
        font-size: 1.5rem;
    }

    .hero-section {
        padding: 2rem 1rem;
        margin: 1rem 0;
    }

    .theme-toggle-container {
        top: 10px;
        right: 10px;
    }

    .theme-toggle {
        width: 45px;
        height: 45px;
    }

    .theme-icon {
        font-size: 1.3rem;
    }

    .love-note {
        padding: 1.5rem;
    }

    .love-note h3 {
        font-size: 1.2rem;
    }

    .love-note p {
        font-size: 1rem;
    }

    .floating-hearts .heart {
        font-size: 1.5rem;
    }

    footer .contact h2 {
        font-size: 1.5rem;
    }

    footer p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .romantic-title {
        font-size: 1.5rem;
    }

    .hero-section {
        padding: 1.5rem 0.75rem;
    }

    .theme-toggle {
        width: 40px;
        height: 40px;
    }

    .theme-icon {
        font-size: 1.2rem;
    }

    .love-notes {
        gap: 1.5rem;
        margin: 2rem 0;
    }

    .love-note {
        padding: 1.25rem;
    }

    .container {
        padding: 1rem !important;
    }

    .password-container {
        max-width: 100%;
    }
}
