/* Global Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    color: #fff;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px) 0 0 / 20px 20px;
    opacity: 0.3;
}

/* Container */
.container {
    width: 90%;
    max-width: 600px;
    /* Mobile-first but looks good on desktop */
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 20px;
    transition: transform 0.3s ease;
}

/* Buddy Section */
.buddy-container {
    margin-bottom: 30px;
    position: relative;
}

.buddy-avatar {
    font-size: 80px;
    color: #ff4081;
    text-shadow: 0 0 20px rgba(255, 64, 129, 0.8);
    animation: float 3s ease-in-out infinite;
    display: inline-block;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.chat-bubble {
    background: #fff;
    color: #333;
    padding: 15px 25px;
    border-radius: 20px;
    margin-top: 20px;
    font-size: 1.1rem;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
    animation: fadeIn 1s ease-out;
}

.chat-bubble::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px;
    border-style: solid;
    border-color: transparent transparent #fff transparent;
}

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 10px;
}

.menu-item {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 15px;
    padding: 20px;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(5px);
}

.menu-item i {
    font-size: 2rem;
    color: #ffd700;
    /* Gold */
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.menu-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.menu-item.highlight {
    background: linear-gradient(135deg, #ff4081, #ff80ab);
    color: #fff;
    font-weight: bold;
}

.menu-item.highlight:hover {
    box-shadow: 0 0 20px rgba(255, 64, 129, 0.6);
}

/* Hidden Content Sections */
.hidden {
    display: none;
}

.content-section {
    animation: slideUp 0.5s ease-out;
    padding-top: 20px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    color: #ff80ab;
    margin-bottom: 20px;
}

/* Gift List */
.gift-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gift-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.gift-card:hover {
    background: rgba(255, 255, 255, 0.2);
}

.gift-card i {
    font-size: 1.5rem;
    color: #ff4081;
}

/* Timeline */
.timeline {
    text-align: left;
    padding-left: 20px;
    border-left: 2px solid #ff4081;
    margin-left: 20px;
    position: relative;
}

.timeline-item {
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -29px;
    top: 5px;
    width: 16px;
    height: 16px;
    background: #ff4081;
    /* Pink dot */
    border-radius: 50%;
    border: 2px solid #fff;
}

.timeline-item .date {
    font-size: 0.9rem;
    color: #ffd700;
    font-weight: bold;
}

.timeline-item .desc {
    font-size: 1rem;
    color: #e0e0e0;
}

/* Back Button */
.back-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid #ff4081;
    color: #ff4081;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #ff4081;
    color: #fff;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        width: 95%;
        padding: 15px;
        margin-top: 50px;
        margin-bottom: 50px;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    /* Force all buttons (even special ones) to span 1 column on mobile */
    .menu-item {
        grid-column: auto !important;
    }

    .buddy-avatar {
        font-size: 60px;
    }

    h2 {
        font-size: 2rem;
    }
}


/* Image Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal.show {
    display: block;
    animation: fadeIn 0.3s;
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: #ff4081;
    text-decoration: none;
    cursor: pointer;
}

/* Love Contract Styles */
.contract-container {
    background: #fff;
    width: 90%;
    max-width: 500px;
    margin: 50px auto;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)),
        url('https://www.transparenttextures.com/patterns/paper-fibers.png');
}

.contract-inner {
    border: 5px double #ff4081;
    padding: 30px;
    text-align: center;
    color: #333;
}

/* Flash Effect */
.flash-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
}

@keyframes cameraFlash {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

#full-proposal-name span {
    display: inline-block;
    margin: 0 5px;
}