/* --- LOVE LETTERS PAGE STYLING --- */
.letter-hero {
    padding-bottom: 2rem;
}

.letter-nav-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2rem;
}

.letter-tab {
    background: white;
    border: 1.5px solid var(--border-color);
    padding: 0.7rem 1.4rem;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
}

.letter-tab:hover {
    border-color: var(--primary-rose);
    color: var(--primary-rose);
    transform: translateY(-2px);
}

.letter-tab.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 6px 15px rgba(255, 82, 123, 0.3);
}

.letter-showcase {
    display: none;
    max-width: 1200px;
    margin: 0 auto 5rem;
    padding: 0 5%;
    animation: fadeIn 0.6s ease;
}

.letter-showcase.active {
    display: block;
}

.letter-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 900px) {
    .letter-container {
        grid-template-columns: 1fr;
    }
}

/* Stationery Paper Look */
.stationery-paper {
    background: #fffdfa;
    border: 1px solid #f2e8de;
    border-radius: var(--radius-lg);
    padding: 4rem 3.5rem;
    box-shadow: 0 15px 40px rgba(138, 100, 110, 0.1), inset 0 0 40px rgba(255, 238, 242, 0.4);
    position: relative;
    background-image: linear-gradient(#fcf8f2 1px, transparent 1px);
    background-size: 100% 32px;
    line-height: 32px;
}

@media (max-width: 768px) {
    .stationery-paper {
        padding: 2.5rem 1.5rem;
    }
}

.wax-seal {
    position: absolute;
    top: -20px;
    right: 40px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #d90429 0%, #ef233c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: white;
    box-shadow: 0 6px 15px rgba(217, 4, 41, 0.3);
    border: 3px solid #ffccd5;
    transform: rotate(15deg);
}

.letter-header {
    border-bottom: 2px dashed var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.letter-date {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-rose);
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.letter-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--text-main);
    line-height: 1.3;
}

.letter-body p {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: #4a2c38;
    margin-bottom: 1.8rem;
    line-height: 1.8;
}

.letter-signoff {
    margin-top: 3rem;
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    color: var(--primary-rose);
    line-height: 1.4;
}

.signoff-name {
    font-size: 2.5rem;
    font-weight: bold;
}

.letter-footer-actions {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: right;
}

.action-btn {
    background: var(--bg-blush);
    border: 1px solid var(--primary-rose);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--primary-rose);
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: var(--primary-rose);
    color: white;
    transform: scale(1.05);
}

/* Scrapbook Sidebar */
.scrapbook-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.scrapbook-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--text-main);
    text-align: center;
    width: 100%;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.polaroid-card {
    background: white;
    padding: 1rem 1rem 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    border: 1px solid #efefef;
    width: 100%;
    max-width: 320px;
    transition: transform 0.3s ease;
    position: relative;
}

.polaroid-card::after {
    content: '';
    position: absolute;
    top: -12px;
    left: 35%;
    width: 30%;
    height: 25px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transform: rotate(-3deg);
}

.polaroid-card.rotate-left {
    transform: rotate(-3deg);
}

.polaroid-card.rotate-right {
    transform: rotate(3deg);
}

.polaroid-card:hover {
    transform: rotate(0deg) scale(1.05);
    z-index: 10;
}

.polaroid-img-box {
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: #f8f8f8;
    margin-bottom: 1rem;
}

.polaroid-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.polaroid-card:hover .polaroid-img-box img {
    transform: scale(1.08);
}

.polaroid-caption {
    font-family: 'Dancing Script', cursive;
    font-size: 1.4rem;
    color: var(--text-main);
    text-align: center;
}

.photo-selector-buttons {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 1rem;
}

.photo-selector-buttons button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-blush);
    color: var(--primary-rose);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.photo-selector-buttons button:hover {
    background: var(--primary-rose);
    color: white;
}

/* Hug Modal */
.hug-popup {
    background: white;
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    max-width: 450px;
    border: 2px solid var(--border-color);
}

.hug-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
    animation: heartbeat 1s infinite;
}

.hug-popup h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 0.8rem;
}

.hug-popup p {
    color: var(--text-muted);
    margin-bottom: 1.8rem;
    line-height: 1.6;
}
