/**
 * Love Page View - General Styles
 */

/* Share bar */
.lp-share-bar {
    max-width: 700px;
    margin: 0 auto 30px;
    padding: 20px;
    background: rgba(255,255,255,0.95);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.lp-share-bar h3 {
    margin: 0 0 15px;
    font-size: 1.1em;
    color: #333;
}

.lp-share-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.lp-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    font-family: 'Heebo', sans-serif;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.lp-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.lp-share-btn.whatsapp {
    background: #25d366;
    color: #fff;
}

.lp-share-btn.copy-link {
    background: #1976d2;
    color: #fff;
}

.lp-share-btn.qr-code {
    background: #333;
    color: #fff;
}

.lp-share-btn.facebook {
    background: #1877f2;
    color: #fff;
}

/* QR Modal */
.lp-qr-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.7);
    align-items: center;
    justify-content: center;
}

.lp-qr-modal.active {
    display: flex;
}

.lp-qr-modal-content {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 350px;
    width: 90%;
}

.lp-qr-modal-content h3 {
    margin: 0 0 10px;
    color: #333;
}

.lp-qr-modal-content p {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.9em;
}

.lp-qr-modal-content canvas {
    margin: 0 auto;
    display: block;
}

.lp-qr-close {
    margin-top: 20px;
    padding: 8px 25px;
    border: none;
    background: #e0e0e0;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Heebo', sans-serif;
    font-size: 0.95em;
}

/* Success message for new pages */
.lp-new-message {
    max-width: 700px;
    margin: 0 auto 20px;
    padding: 20px;
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
    color: #fff;
    border-radius: 16px;
    text-align: center;
    animation: lp-slide-down 0.5s ease;
}

@keyframes lp-slide-down {
    from { transform: translateY(-20px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

.lp-new-message h3 {
    margin: 0 0 8px;
    font-size: 1.2em;
}

.lp-new-message p {
    margin: 0;
    opacity: 0.9;
}

/* View counter */
.lp-view-count {
    text-align: center;
    padding: 10px;
    color: #999;
    font-size: 0.85em;
}

/* Back to site link */
.lp-back-link {
    display: block;
    text-align: center;
    padding: 15px;
    color: #666;
    text-decoration: none;
    font-size: 0.9em;
}

.lp-back-link:hover {
    color: #333;
}

/* Animation overlay */
.lp-animation-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.lp-animation-overlay.hiding {
    opacity: 0;
    pointer-events: none;
}

/* Envelope animation */
.lp-anim-envelope {
    background: linear-gradient(135deg, #e91e63, #c2185b);
}

.envelope-body {
    width: 300px;
    height: 200px;
    background: #fff;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.3s;
}

.envelope-body:hover {
    transform: scale(1.05);
}

.envelope-flap {
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 100px;
    background: #f8bbd0;
    clip-path: polygon(0 0, 50% 100%, 100% 0);
    transition: transform 0.6s ease;
    transform-origin: top;
    z-index: 2;
}

.envelope-body.opening .envelope-flap {
    transform: rotateX(180deg);
}

.envelope-heart {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3em;
    z-index: 1;
}

.envelope-text {
    text-align: center;
    color: #fff;
    margin-top: 30px;
    font-size: 1.1em;
    opacity: 0.9;
}

/* Hearts animation */
.lp-anim-hearts {
    background: linear-gradient(135deg, #fce4ec, #f8bbd0);
    cursor: pointer;
}

.hearts-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hearts-container .heart {
    position: absolute;
    bottom: -50px;
    font-size: 2em;
    animation: lp-rise-heart 3s ease-in-out forwards;
    opacity: 0;
}

@keyframes lp-rise-heart {
    0%   { transform: translateY(0) scale(0); opacity: 0; }
    20%  { opacity: 1; transform: translateY(-100px) scale(1); }
    100% { transform: translateY(-110vh) scale(0.5) rotate(30deg); opacity: 0; }
}

.hearts-text {
    position: relative;
    z-index: 2;
    color: #c2185b;
    font-size: 1.3em;
    text-align: center;
}

/* Curtain animation */
.lp-anim-curtain {
    background: #1a1a2e;
}

.curtain-left, .curtain-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    background: linear-gradient(180deg, #8b0000 0%, #b71c1c 50%, #8b0000 100%);
    transition: transform 1s ease-in-out;
    z-index: 2;
}

.curtain-left { left: 0; transform-origin: left; }
.curtain-right { right: 0; transform-origin: right; }

.curtain-left.open { transform: translateX(-100%); }
.curtain-right.open { transform: translateX(100%); }

.curtain-text {
    color: #ffd700;
    font-size: 1.5em;
    z-index: 1;
}

/* Sparkle animation */
.lp-anim-sparkle {
    background: linear-gradient(135deg, #1a1a2e, #2d1b69);
    cursor: pointer;
}

.sparkle-container .sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #ffd700;
    border-radius: 50%;
    animation: lp-sparkle 2s ease-in-out infinite;
}

@keyframes lp-sparkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50%      { opacity: 1; transform: scale(1); }
}

.sparkle-text {
    position: relative;
    z-index: 2;
    color: #ffd700;
    font-size: 1.3em;
    text-align: center;
}

/* Typewriter animation */
.lp-anim-typewriter {
    background: #f5e6d3;
    cursor: pointer;
}

.typewriter-text {
    font-size: 1.5em;
    color: #3e2723;
    border-left: 3px solid #3e2723;
    padding-right: 10px;
    overflow: hidden;
    white-space: nowrap;
    animation: lp-typing 2s steps(20) forwards, lp-blink 0.5s step-end infinite;
    width: 0;
}

@keyframes lp-typing {
    from { width: 0; }
    to   { width: 300px; }
}

@keyframes lp-blink {
    50% { border-color: transparent; }
}

/* Fade animation (default) */
.lp-anim-fade {
    background: rgba(0,0,0,0.8);
    cursor: pointer;
}

.fade-text {
    color: #fff;
    font-size: 1.3em;
    animation: lp-pulse 1.5s ease-in-out infinite;
}

@keyframes lp-pulse {
    0%, 100% { opacity: 0.7; }
    50%      { opacity: 1; }
}

@media (max-width: 768px) {
    .lp-share-bar {
        margin: 0 10px 20px;
    }
    .lp-share-buttons {
        flex-direction: column;
    }
    .lp-share-btn {
        justify-content: center;
    }
    .envelope-body {
        width: 240px;
        height: 160px;
    }
}
