/* Main Styles for Christine's Website */
:root {
    --primary-color: #ff85a2;
    --secondary-color: #ffc2d1;
    --accent-color: #ffb6c1;
    --text-color: #4a4a4a;
    --light-color: #fff9fb;
    --shadow: 0 4px 8px rgba(255, 133, 162, 0.2);
    --lock-screen-bg: linear-gradient(135deg, #ff85a2, #ffc2d1);
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--light-color);
    line-height: 1.6;
}

/* Typography */
h1, h2, h3 {
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    color: var(--primary-color);
}

.special {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: var(--primary-color);
}

p {
    margin-bottom: 1rem;
}

/* Header */
header {
    background-color: var(--secondary-color);
    padding: 2rem 0;
    text-align: center;
    box-shadow: var(--shadow);
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-color);
}

/* Navigation */
nav {
    background-color: var(--primary-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
}

nav li {
    margin: 0 1rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

section {
    margin-bottom: 4rem;
    padding: 2rem;
    border-radius: 20px;
    background-color: white;
    box-shadow: var(--shadow);
}

/* Hero Section */
.hero {
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #fff9fb, #ffc2d1);
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Relationship Counter */
.relationship-counter {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 1.5rem;
    margin: 1.5rem auto;
    max-width: 400px;
    box-shadow: var(--shadow);
}

.counter-values {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1rem 0;
}

.counter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.counter-item span:first-child {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.counter-label {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-top: 0.3rem;
}

.counter-since {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
    font-style: italic;
}

.floating-hearts {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.cute-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 8px rgba(255, 133, 162, 0.3);
    margin-top: 1rem;
}

.cute-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(255, 133, 162, 0.4);
}

/* Section Description - Used in multiple sections */
.section-description {
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

/* Music Section */
.music-section {
    background-color: var(--light-color);
}

.music-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tab-button {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    margin: 0 0.5rem 0.5rem 0.5rem;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.tab-button:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.tab-button.active {
    background-color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(255, 133, 162, 0.3);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.playlist-container {
    background-color: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.artist-links {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.artist-link {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 0.5rem 1rem;
    margin: 0.5rem;
    border-radius: 20px;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;
}

.artist-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Boba Section */
.boba-section {
    background-color: var(--light-color);
}

.boba-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.boba-card, .food-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s;
}

.boba-card:hover, .food-card:hover {
    transform: translateY(-5px);
}

.boba-image, .food-image {
    height: 150px;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.emoji-placeholder {
    font-size: 5rem;
}

.boba-card h3, .food-card h3 {
    margin: 1rem 0 0.5rem;
    color: var(--primary-color);
}

.boba-card p, .food-card p {
    padding: 0 1rem 1rem;
}

.boba-counter {
    background-color: white;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    margin-top: 2rem;
}

#boba-days {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Tulip Garden Section */
.tulip-section {
    background-color: var(--light-color);
}

.garden-container {
    margin-top: 2rem;
    max-width: 100%;
    overflow: hidden;
}

.tulip-bed {
    background-color: #8B4513; /* soil color */
    min-height: 200px;
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
}

.tulip {
    font-size: 3rem;
    margin: 0 0.5rem;
    animation: growTulip 2s forwards;
    transform-origin: bottom center;
    position: absolute;
    bottom: 10px;
}

@keyframes growTulip {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}

.garden-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Pets Section */
.pets-section {
    background-color: var(--light-color);
}

.pets-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.pet-area {
    background-color: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.pet-playground {
    height: 200px;
    background-color: var(--secondary-color);
    border-radius: 10px;
    margin: 1.5rem 0;
    position: relative;
    overflow: hidden;
}

.pet {
    position: absolute;
    font-size: 3rem;
    transition: all 0.5s ease;
}

.cat {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.dog {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.pet-controls {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pet-action {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.pet-action:hover {
    background-color: var(--primary-color);
}

/* Gallery Section */
.gallery-section {
    background-color: var(--light-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-auto-rows: 200px;
    gap: 1rem;
    grid-auto-flow: dense; /* This creates the collage effect */
    max-width: 100%;
    overflow: hidden;
}

.gallery-item-wrapper {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    position: relative;
    width: 100%;
    height: 100%;
    min-width: 0; /* CRITICAL: Prevents high-res images from blowing out the grid */
    min-height: 0; /* CRITICAL: Prevents high-res images from blowing out the grid */
}

.gallery-item-wrapper:hover {
    transform: scale(1.02);
    z-index: 10;
}

.gallery-item {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    max-width: 100%; /* CRITICAL: Ensures image never exceeds container width */
    max-height: 100%; /* CRITICAL: Ensures image never exceeds container height */
}

/* Collage sizes */
.gallery-item-wrapper.wide {
    grid-column: span 2;
}

.gallery-item-wrapper.tall {
    grid-row: span 2;
}

.gallery-item-wrapper.big {
    grid-column: span 2;
    grid-row: span 2;
}

/* Responsive adjustments for gallery */
@media (max-width: 600px) {
    .gallery-item-wrapper.wide,
    .gallery-item-wrapper.big {
        grid-column: span 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .special {
        font-size: 2.5rem;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav li {
        margin: 0.5rem 0;
    }


    .music-tabs {
        flex-direction: column;
        align-items: center;
    }

    .tab-button {
        margin-bottom: 0.5rem;
        width: 80%;
    }

    .pets-container {
        grid-template-columns: 1fr;
    }
}

/* Lock Screen Styles */
.lock-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--lock-screen-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    transition: opacity 0.5s, visibility 0.5s;
}

.lock-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.lock-screen-content {
    width: 300px;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lock-screen-time {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.lock-screen-date {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.lock-screen-prompt {
    margin-bottom: 1.5rem;
}

.lock-screen-hint {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 0.5rem;
}

.lock-screen-input-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.lock-screen-input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--secondary-color);
    border-radius: 15px;
    font-size: 1.2rem;
    text-align: center;
    outline: none;
    transition: border-color 0.3s;
}

.lock-screen-input:focus {
    border-color: var(--primary-color);
}

.lock-screen-submit {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 8px rgba(255, 133, 162, 0.3);
}

.lock-screen-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(255, 133, 162, 0.4);
}

.lock-screen-error {
    color: #e74c3c;
    margin-top: 1rem;
    font-size: 0.9rem;
    min-height: 1.2rem;
}

/* Love Notes Section */
.notes-section {
    background-color: var(--light-color);
}

.notes-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.note {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    position: relative;
}

.note:hover {
    transform: translateY(-5px);
}

.note::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--primary-color);
}

.note-content {
    padding: 1.5rem;
}

.note-text {
    font-family: 'Dancing Script', cursive;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    line-height: 1.5;
}

.note-date {
    text-align: right;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.7;
    font-style: italic;
}

.notes-api-info {
    background-color: white;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    margin-top: 2rem;
    font-style: italic;
    color: var(--text-color);
}

/* Birthday Popup Styles */
.birthday-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff9fb4, #ffcad4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    transition: opacity 0.5s, visibility 0.5s;
}

.birthday-popup.hidden {
    opacity: 0;
    visibility: hidden;
}

.birthday-popup-content {
    width: 90%;
    max-width: 600px;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.birthday-popup h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-family: 'Dancing Script', cursive;
}

.birthday-message {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.birthday-decorations {
    width: 100%;
    height: 150px;
    position: relative;
    margin: 1rem 0 2rem;
}

.birthday-cats, .birthday-flowers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Birthday Section Styles */
.birthday-section {
    background-color: var(--light-color);
    padding: 3rem 2rem;
    text-align: center;
}

.birthday-section.hidden {
    display: none;
}

.birthday-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.birthday-card {
    perspective: 1000px;
    height: 300px;
    cursor: pointer;
}

.birthday-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.birthday-card:hover .birthday-card-inner {
    transform: rotateY(180deg);
}

.birthday-card-front, .birthday-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.birthday-card-front {
    background: linear-gradient(135deg, #ff85a2, #ffc2d1);
    color: white;
}

.birthday-card-decoration {
    font-size: 5rem;
    margin-top: 1rem;
}

.birthday-card-back {
    background-color: white;
    color: var(--text-color);
    transform: rotateY(180deg);
    box-shadow: var(--shadow);
}

.birthday-card-message {
    font-family: 'Dancing Script', cursive;
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.birthday-signature {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    color: var(--primary-color);
    align-self: flex-end;
}

.birthday-wishes {
    background-color: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.wish-container {
    margin-top: 1.5rem;
}

.wish {
    background-color: var(--secondary-color);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    transition: transform 0.3s;
}

.wish:hover {
    transform: translateY(-5px);
}

.birthday-surprise {
    background-color: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

#birthday-surprise-container {
    margin-top: 1.5rem;
    transition: opacity 0.5s;
}

#birthday-surprise-container.hidden {
    opacity: 0;
    height: 0;
    overflow: hidden;
}

/* Birthday Navigation Item */
.birthday-link {
    background-color: #ffcb69;
    color: #fff;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 203, 105, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 203, 105, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 203, 105, 0);
    }
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}
