/* Main Styles for My Lady LOVE Portal */
:root {
    --primary-color: #ff85a2;
    --secondary-color: #ff5e8a;
    --accent-color: #ff3377;
    --light-pink: #ffe6ee;
    --dark-pink: #d14d72;
    --text-color: #4a4a4a;
    --white: #ffffff;
    --shadow: 0 4px 8px rgba(255, 131, 162, 0.2);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: #fff5f8;
    color: var(--text-color);
    line-height: 1.6;
    background-image: url('https://www.transparenttextures.com/patterns/cubes.png');
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 229, 238, 0.7) 0%, rgba(255, 209, 220, 0.7) 100%);
    z-index: -1;
}

/* Header Styles */
header {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 2rem 1rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

header::before, header::after {
    content: '💖';
    position: absolute;
    font-size: 2rem;
    animation: float 6s infinite ease-in-out;
}

header::before {
    left: 10%;
    top: 20%;
    animation-delay: 0.5s;
}

header::after {
    right: 10%;
    bottom: 20%;
    animation-delay: 1.5s;
}

.portal-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.portal-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
}

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

.portal-section {
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: transform 0.3s ease;
    position: relative;
}

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

.section-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem;
    text-align: center;
    position: relative;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.heart-decoration {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    animation: pulse 1.5s infinite;
}

.section-content {
    padding: 1.5rem;
}

/* Form Elements */
textarea, input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--light-pink);
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease;
    resize: none;
}

textarea:focus, input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 133, 162, 0.3);
}

.cute-button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

.cute-button:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.cute-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Complaint Box Styles */
#complaintText {
    height: 150px;
    background-color: var(--light-pink);
}

.apology-text {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark-pink);
    font-weight: 500;
}

.ai-voice-message {
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--dark-pink);
    font-style: italic;
}

.voice-btn {
    margin-top: 1rem;
    background-color: var(--secondary-color);
}

.floating-hearts {
    text-align: center;
    height: 50px;
    position: relative;
}

.floating-hearts span {
    position: absolute;
    font-size: 1.5rem;
    animation: float-up 3s ease-in-out infinite;
    left: 50%;
    opacity: 0;
}

.floating-hearts span:nth-child(1) {
    animation-delay: 0s;
    transform: translateX(-50px);
}

.floating-hearts span:nth-child(2) {
    animation-delay: 1s;
    transform: translateX(0);
}

.floating-hearts span:nth-child(3) {
    animation-delay: 2s;
}

/* Memory Lane Link Styles */
.memory-link-box {
    text-align: center;
    padding: 20px;
    background-color: var(--light-pink);
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.memory-link-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: translateX(50px);
}

/* Quote Generator Styles */
.quote-box {
    background-color: var(--light-pink);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 1rem;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-box p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--dark-pink);
}

/* Pet Name Styles */
.pet-name-box {
    background-color: var(--light-pink);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 1rem;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pet-name-box p {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-pink);
}

/* Apology Corner Styles */
.apology-message {
    text-align: center;
    margin-bottom: 1.5rem;
}

.apology-message p {
    font-size: 1.1rem;
    color: var(--dark-pink);
    line-height: 1.8;
}

.virtual-gifts {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.gift-btn {
    background: none;
    border: 2px solid var(--light-pink);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gift-btn:hover {
    transform: scale(1.1);
    border-color: var(--primary-color);
    background-color: var(--light-pink);
}

#giftMessage {
    text-align: center;
    margin-top: 1rem;
    font-weight: 500;
    color: var(--dark-pink);
}

/* Love Diary Styles */
.diary-entries {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}

.diary-entry {
    background-color: var(--light-pink);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.entry-date {
    font-weight: 600;
    color: var(--dark-pink);
    margin-bottom: 0.5rem;
}

.entry-content {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Photo Gallery Styles */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.photo-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.photo-item:hover {
    transform: scale(1.05);
}

.photo-placeholder {
    background-color: var(--light-pink);
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
}

.photo-placeholder i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.photo-placeholder p {
    font-size: 0.9rem;
    color: var(--dark-pink);
}

/* Compliment Shower Styles */
.compliment-box {
    background-color: var(--light-pink);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 1rem;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compliment-box p {
    font-size: 1.1rem;
    color: var(--dark-pink);
}

/* Mood Selector Styles */
.mood-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.mood-btn {
    background-color: var(--light-pink);
    border: none;
    border-radius: 10px;
    padding: 1rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mood-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.mood-message {
    text-align: center;
    font-size: 1.1rem;
    color: var(--dark-pink);
    padding: 1rem;
    background-color: var(--light-pink);
    border-radius: 10px;
}

/* Secret Vault Styles */
.vault-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.secret-letter {
    background-color: var(--light-pink);
    padding: 1.5rem;
    border-radius: 10px;
    position: relative;
}

.secret-letter::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid var(--light-pink);
}

.secret-letter h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    color: var(--dark-pink);
    margin-bottom: 1rem;
    text-align: center;
}

.secret-letter p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Reasons Wall Styles */
.reasons-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.reason-item {
    background-color: var(--light-pink);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.reason-item:hover {
    transform: scale(1.05);
    background-color: var(--primary-color);
    color: var(--white);
}

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

/* Background Music Styles */
.background-music {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
}

.music-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.music-btn:hover {
    background-color: var(--accent-color);
    transform: scale(1.1);
}

/* Utility Classes */
.hidden {
    display: none;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: translateY(-50%) scale(1);
    }
    50% {
        transform: translateY(-50%) scale(1.2);
    }
    100% {
        transform: translateY(-50%) scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes float-up {
    0% {
        transform: translateY(20px) translateX(-50%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(-20px) translateX(-50%);
        opacity: 0;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .portal-title {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 1.3rem;
    }
    
    .vault-form {
        flex-direction: column;
    }
    
    .mood-buttons {
        grid-template-columns: 1fr;
    }
    
    .virtual-gifts {
        flex-wrap: wrap;
    }
    
    .photo-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .reasons-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .portal-title {
        font-size: 2rem;
    }
    
    .portal-subtitle {
        font-size: 1rem;
    }
    
    .section-content {
        padding: 1rem;
    }
    
    .photo-gallery {
        grid-template-columns: 1fr 1fr;
    }
    
    .reasons-container {
        grid-template-columns: 1fr;
    }
}