/* Love Poetry Generator - Main Stylesheet */

:root {
    --gradient-start: #ff9a9e;
    --gradient-mid: #fad0c4;
    --gradient-end: #fbc2eb;
    --primary-purple: #8b5a8c;
    --primary-pink: #ff8b8b;
    --rose-gold: #e0a387;
    --text-dark: #4a4a4a;
    --text-romantic: #6b4e71;
    --white-soft: #fff9f9;
    --shadow-soft: rgba(255, 105, 180, 0.2);
    --shadow-strong: rgba(139, 90, 140, 0.3);
}

/* Container Styles */
.lpg-container {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-mid) 50%, var(--gradient-end) 100%);
    font-family: 'Montserrat', sans-serif;
    overflow: hidden;
    padding: 2rem 1rem;
}

.lpg-wrapper {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* Header Styles */
.lpg-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 1s ease;
}

.lpg-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px var(--shadow-strong);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.lpg-subtitle {
    font-size: 1.2rem;
    color: var(--white-soft);
    text-shadow: 1px 1px 2px var(--shadow-soft);
    font-weight: 300;
}

/* Form Section */
.lpg-form-section {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px var(--shadow-strong);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: fadeInUp 1s ease 0.3s both;
}

.lpg-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.lpg-input-group {
    display: flex;
    flex-direction: column;
}

.lpg-input-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-romantic);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lpg-optional {
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--rose-gold);
    margin-left: 0.3rem;
}

.lpg-input,
.lpg-select {
    padding: 0.8rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
    outline: none;
}

.lpg-input:focus,
.lpg-select:focus {
    border-color: var(--primary-pink);
    box-shadow: 0 0 15px var(--shadow-soft);
    transform: translateY(-2px);
}

.lpg-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b5a8c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
}

/* Button Styles */
.lpg-button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.lpg-generate-btn,
.lpg-reset-btn {
    position: relative;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    background: linear-gradient(45deg, var(--primary-purple), var(--primary-pink));
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-strong);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lpg-generate-btn:hover,
.lpg-reset-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-strong);
    animation: pulse 2s infinite;
}

.lpg-generate-btn::before,
.lpg-reset-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.lpg-generate-btn:hover::before,
.lpg-reset-btn:hover::before {
    left: 100%;
}

.btn-heart {
    animation: heartbeat 1.5s ease infinite;
}

/* Poem Card Styles */
.lpg-poem-section {
    position: relative;
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
}

.lpg-poem-card {
    position: relative;
    max-width: 600px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    padding: 2.5rem;
    box-shadow: 0 20px 50px var(--shadow-strong);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.5s ease;
    z-index: 20;
}

.poem-card-glow {
    animation: glowPulse 3s infinite;
}

.poem-card-inner {
    position: relative;
    z-index: 2;
}

.poem-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 139, 139, 0.3);
}

.poem-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-romantic);
    margin-bottom: 0.5rem;
}

.poem-relationship-badge {
    display: inline-block;
    padding: 0.3rem 1.2rem;
    background: linear-gradient(45deg, var(--rose-gold), var(--primary-pink));
    color: white;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.poem-content {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    line-height: 2;
    color: var(--text-dark);
    text-align: center;
    margin: 2rem 0;
    white-space: pre-line;
}

.poem-line {
    margin: 0.5rem 0;
    opacity: 0;
    animation: fadeInLine 0.5s ease forwards;
}

.poem-signature {
    text-align: right;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 2px solid rgba(255, 139, 139, 0.3);
    font-style: italic;
    color: var(--rose-gold);
}

.poem-signature-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
}

.poem-watermark {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 0.8rem;
    color: rgba(139, 90, 140, 0.3);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lpg-poem-card.downloading .poem-watermark {
    opacity: 1;
}

/* Action Buttons */
.lpg-action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.lpg-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 50px;
    background: white;
    color: var(--text-romantic);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.lpg-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-soft);
    background: var(--primary-pink);
    color: white;
}

/* Social Sharing */
.lpg-social-sharing {
    text-align: center;
    margin: 2rem 0;
}

.social-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px var(--shadow-strong);
}

.social-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 50px;
    background: white;
    color: var(--text-romantic);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-soft);
}

.social-btn.whatsapp:hover { background: #25D366; color: white; }
.social-btn.facebook:hover { background: #4267B2; color: white; }
.social-btn.twitter:hover { background: #1DA1F2; color: white; }
.social-btn.telegram:hover { background: #0088cc; color: white; }
.social-btn.copy-link-btn:hover { background: var(--primary-purple); color: white; }

/* Favorites Section */
.lpg-favorites-section {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 2rem;
}

.favorites-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 1rem;
    text-align: center;
}

.favorites-list {
    display: grid;
    gap: 1rem;
}

.favorite-item {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.favorite-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--shadow-soft);
}

.favorite-title {
    font-weight: 600;
    color: var(--text-romantic);
    margin-bottom: 0.3rem;
}

.favorite-preview {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

/* Toast Notification */
.lpg-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-romantic);
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    font-weight: 500;
    z-index: 9999;
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.lpg-toast.show {
    transform: translateX(-50%) translateY(0);
}

/* Floating Elements */
.floating-hearts,
.rose-petals {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.floating-heart {
    position: absolute;
    bottom: -50px;
    animation: floatUp 15s linear infinite;
    user-select: none;
    z-index: 5;
}

.rose-petal {
    position: absolute;
    top: -50px;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    border-radius: 150% 0 150% 0;
    transform: rotate(45deg);
    animation: fall 20s linear infinite;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
    z-index: 1;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLine {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1); }
    75% { transform: scale(1.05); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes fall {
    0% {
        transform: translateY(-50px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 20px 50px rgba(255, 105, 180, 0.3);
    }
    50% {
        box-shadow: 0 20px 70px rgba(255, 105, 180, 0.6);
    }
}

@keyframes heartbeat-animation {
    0% { transform: scale(1); }
    25% { transform: scale(1.05); }
    35% { transform: scale(1); }
    45% { transform: scale(1.03); }
    55% { transform: scale(1); }
}

.heartbeat-animation {
    animation: heartbeat-animation 1s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .lpg-title {
        font-size: 2.2rem;
    }
    
    .lpg-form-grid {
        grid-template-columns: 1fr;
    }
    
    .lpg-poem-card {
        padding: 1.5rem;
    }
    
    .poem-title {
        font-size: 1.8rem;
    }
    
    .poem-content {
        font-size: 1.1rem;
    }
    
    .social-buttons {
        flex-direction: column;
    }
    
    .social-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .lpg-title {
        font-size: 1.8rem;
    }
    
    .lpg-subtitle {
        font-size: 1rem;
    }
    
    .lpg-form-section {
        padding: 1rem;
    }
    
    .lpg-generate-btn,
    .lpg-reset-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .lpg-container {
        background: white;
    }
    
    .floating-hearts,
    .rose-petals {
        display: none;
    }
}