/* --- FEED / HOMEPAGE SCREEN --- */
.main-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 15px rgba(255, 82, 123, 0.06);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-icon {
    font-size: 2rem;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.15);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.15);
    }
}

.logo-text h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    color: var(--primary-rose);
    line-height: 1.1;
}

.logo-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.love-badge {
    background: var(--bg-blush);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-rose);
}

.logout-btn {
    background: white;
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.logout-btn:hover {
    background: #fff0f5;
    border-color: var(--primary-rose);
    color: var(--primary-rose);
}

/* Hero & Lovely Words Section */
.hero-section {
    max-width: 1200px;
    margin: 2.5rem auto;
    padding: 0 5%;
    text-align: center;
}

.hero-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3.5rem 2rem;
    box-shadow: var(--shadow-soft);
    background-image: radial-gradient(#ffd8e4 1px, transparent 1px);
    background-size: 20px 20px;
    margin-bottom: 2.5rem;
}

.hero-tag {
    display: inline-block;
    background: var(--primary-gradient);
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.hero-caption {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

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

    .love-badge {
        display: none;
    }
}

/* Lovely Words Grid */
.lovely-words-container {
    margin: 3rem 0;
}

.section-heading {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 25%;
    width: 50%;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.words-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    text-align: left;
}

.word-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.word-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--border-color);
    transition: all 0.3s ease;
}

.word-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.word-card:hover::before {
    background: var(--primary-gradient);
}

.word-card.highlighted {
    background: var(--secondary-gradient);
    color: white;
    border: none;
    box-shadow: var(--shadow-soft);
}

.word-card.highlighted::before {
    display: none;
}

.word-card.highlighted .quote-text,
.word-card.highlighted .quote-author {
    color: white;
}

.word-card.highlighted .quote-icon {
    color: rgba(255, 255, 255, 0.3);
}

.quote-icon {
    font-size: 3rem;
    line-height: 1;
    color: var(--border-color);
    margin-bottom: 0.5rem;
    font-family: serif;
}

.quote-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.quote-author {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-rose);
    align-self: flex-end;
}

/* --- PHOTO GALLERY SECTION --- */
.gallery-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.8rem;
}

.gallery-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-rose);
}

.gallery-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
    /* 1:1 Aspect Ratio */
    overflow: hidden;
    background: #fdf2f5;
}

.gallery-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 1rem 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.overlay-tag {
    background: var(--primary-gradient);
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.gallery-caption-box {
    padding: 1.2rem;
    text-align: center;
    background: white;
}

.gallery-caption {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
}
