/* ===========================
   CSS Variables & Reset
   =========================== */
:root {
    --primary-pink: #ff6b9d;
    --primary-red: #e74c3c;
    --light-pink: #fff0f5;
    --deep-pink: #ff1493;
    --soft-pink: #ffb6c1;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --gradient-romantic: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    --gradient-love: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-sunset: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
    --shadow-soft: 0 10px 40px rgba(255, 107, 157, 0.3);
    --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.1);
    --border-radius: 20px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--gradient-romantic);
    min-height: 100vh;
    color: var(--text-dark);
    overflow-x: hidden;
}

.script-font {
    font-family: 'Dancing Script', cursive;
}

/* ===========================
   Floating Hearts Background
   =========================== */
.hearts-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    font-size: 20px;
    opacity: 0.6;
    animation: floatUp 8s ease-in infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* ===========================
   Landing Page Styles
   =========================== */
.landing-page {
    position: relative;
    z-index: 1;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 20px 40px;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-title .script-font {
    display: block;
    font-size: 3rem;
    color: var(--primary-pink);
}

.hero-title .highlight {
    display: block;
    font-size: 3.5rem;
    background: var(--gradient-love);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.hero-tagline {
    font-size: 1.1rem;
    color: var(--primary-pink);
    font-weight: 500;
}

/* Generator Card */
.generator-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    margin-bottom: 40px;
}

.card-content {
    padding: 40px 30px;
}

.card-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--text-dark);
}

/* Form Styles */
.generator-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.input-group label {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.input-group .optional {
    color: var(--text-light);
    font-weight: 400;
    font-size: 0.85rem;
}

.input-group input,
.input-group textarea {
    padding: 15px 20px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    resize: none;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.1);
}

.char-count {
    position: absolute;
    right: 10px;
    bottom: 10px;
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Generate Button */
.generate-btn {
    background: var(--gradient-sunset);
    color: var(--white);
    border: none;
    padding: 18px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
    margin-top: 10px;
}

.generate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(255, 107, 157, 0.4);
}

.generate-btn:active {
    transform: translateY(-1px);
}

/* Result Section */
.result-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px dashed #eee;
    animation: fadeInUp 0.5s ease;
}

.result-section.hidden {
    display: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-header {
    text-align: center;
    margin-bottom: 20px;
}

.result-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.result-header h3 {
    font-size: 1.3rem;
    color: var(--primary-pink);
}

.link-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.link-box input {
    flex: 1;
    padding: 15px;
    border: 2px solid var(--soft-pink);
    border-radius: 12px;
    font-size: 0.9rem;
    background: var(--light-pink);
    color: var(--text-dark);
}

.copy-btn {
    background: var(--primary-pink);
    color: var(--white);
    border: none;
    padding: 15px 20px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
    font-weight: 500;
}

.copy-btn:hover {
    background: var(--deep-pink);
}

.copy-btn.copied {
    background: #27ae60;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    color: var(--white);
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-btn.whatsapp {
    background: #25D366;
}

.share-btn.telegram {
    background: #0088cc;
}

.share-btn.email {
    background: #ea4335;
}

/* Test Button */
.test-btn {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 2px dashed var(--primary-pink);
    border-radius: 12px;
    color: var(--primary-pink);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.test-btn:hover {
    background: var(--light-pink);
}

/* How It Works Section */
.how-it-works {
    margin-bottom: 40px;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.step {
    background: var(--white);
    padding: 25px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-card);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--gradient-sunset);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 15px;
}

.step h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.step p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Features Section */
.features {
    margin-bottom: 40px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.feature {
    background: var(--white);
    padding: 20px 15px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-card);
}

.feature-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.feature h3 {
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.feature p {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-light);
}

.footer p {
    margin-bottom: 5px;
}

.footer-note {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* ===========================
   Valentine Page Styles
   =========================== */
.valentine-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.valentine-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 500px;
}

/* Fireworks Canvas */
#fireworksCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

/* Phase Sections */
.phase {
    display: none;
    animation: fadeIn 0.8s ease;
}

.phase.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Tease Section */
.tease-section {
    text-align: center;
}

.tease-content {
    background: var(--white);
    padding: 60px 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
}

.envelope-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.tease-title {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 30px;
    line-height: 1.4;
}

.typing-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.typing-dots span {
    width: 12px;
    height: 12px;
    background: var(--primary-pink);
    border-radius: 50%;
    animation: typingDot 1.4s ease-in-out infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingDot {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-10px); opacity: 1; }
}

/* Reveal Section */
.reveal-section {
    text-align: center;
}

.reveal-content {
    background: var(--white);
    padding: 60px 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
}

.from-text {
    font-size: 1.8rem;
    color: var(--text-dark);
}

.from-text #senderName {
    color: var(--primary-pink);
    font-weight: 700;
}

/* Question Section */
.question-section {
    text-align: center;
}

.question-content {
    background: var(--white);
    padding: 50px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    position: relative;
}

.question-title {
    font-size: 2.8rem;
    color: var(--primary-pink);
    margin-bottom: 10px;
    line-height: 1.2;
}

.heart-divider {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.custom-message {
    font-size: 1.1rem;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 30px;
    padding: 15px;
    background: var(--light-pink);
    border-radius: 10px;
}

.custom-message.hidden {
    display: none;
}

/* Answer Buttons */
.buttons-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.answer-btn {
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.yes-btn {
    background: var(--gradient-sunset);
    color: var(--white);
    box-shadow: var(--shadow-soft);
}

.yes-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 50px rgba(255, 107, 157, 0.5);
}

.no-btn {
    background: #f0f0f0;
    color: var(--text-light);
    position: relative;
    transition: all 0.1s ease;
}

.no-btn:hover {
    background: #e0e0e0;
}

/* Funny Message */
.funny-message {
    margin-top: 20px;
    padding: 15px;
    background: var(--light-pink);
    border-radius: 10px;
    color: var(--primary-pink);
    font-weight: 500;
    animation: shake 0.5s ease;
}

.funny-message.hidden {
    display: none;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Celebration Section */
.celebration-section {
    text-align: center;
}

.celebration-content {
    background: var(--white);
    padding: 50px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.celebration-title {
    font-size: 3rem;
    margin-bottom: 10px;
    animation: pulse 1s ease infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.celebration-hearts {
    font-size: 2rem;
    margin-bottom: 15px;
    animation: heartbeat 1.2s ease infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1); }
    75% { transform: scale(1.1); }
}

.celebration-subtitle {
    font-size: 2rem;
    color: var(--primary-pink);
    margin-bottom: 20px;
}

.celebration-message {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.celebration-message #celebrationName {
    color: var(--primary-pink);
    font-weight: 700;
}

.celebration-custom-msg {
    background: var(--light-pink);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.celebration-custom-msg.hidden {
    display: none;
}

.custom-msg-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.custom-msg-text {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-style: italic;
}

.celebration-quote {
    padding: 20px;
    border-left: 4px solid var(--primary-pink);
    margin: 20px 0;
    text-align: left;
}

.celebration-quote p {
    font-style: italic;
    color: var(--text-light);
}

.celebration-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--gradient-romantic);
    border-radius: 50px;
    font-weight: 500;
    margin-bottom: 20px;
}

.screenshot-hint {
    font-size: 0.9rem;
    color: var(--text-light);
    animation: fadeInUp 1s ease 0.5s both;
}

/* ===========================
   Confetti Animation
   =========================== */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    top: -10px;
    z-index: 100;
    animation: confettiFall 3s ease-in-out forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ===========================
   Mobile Responsive
   =========================== */
@media (max-width: 600px) {
    .hero-title .script-font {
        font-size: 2.2rem;
    }

    .hero-title .highlight {
        font-size: 2.5rem;
    }

    .card-content {
        padding: 30px 20px;
    }

    .question-title {
        font-size: 2rem;
    }

    .answer-btn {
        padding: 15px 30px;
        font-size: 1rem;
    }

    .buttons-container {
        gap: 15px;
    }

    .tease-content,
    .reveal-content,
    .question-content,
    .celebration-content {
        padding: 40px 20px;
    }

    .celebration-title {
        font-size: 2.5rem;
    }

    .celebration-subtitle {
        font-size: 1.5rem;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        justify-content: center;
    }

    .link-box {
        flex-direction: column;
    }
}

/* ===========================
   Utility Classes
   =========================== */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}
