:root {
    --primary: #ff4757;
    --primary-glow: #ff6b81;
    --accent: #5352ed;
    --dark: #2f3542;
    --text: #57606f;
    --glass-bg: rgba(255, 255, 255, 0.92);
    --glass-border: rgba(255, 255, 255, 0.6);
    --radius: 16px;
    --shadow: 0 10px 40px rgba(0,0,0,0.08);
}

/* BASE */
body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: var(--text);
    margin: 0;
    min-height: 100vh;
    padding-bottom: 100px; /* Space for sticky ad */
    background: #ffeaa7;
    overflow-x: hidden;
}

/* DYNAMIC BACKGROUND */
.bg-gradient {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -2;
    background: linear-gradient(120deg, #ff9a9e 0%, #fecfef 100%);
}

.bg-hearts li {
    position: fixed; display: block; list-style: none;
    width: 20px; height: 20px; background: rgba(255, 255, 255, 0.3);
    animation: animate 25s linear infinite; bottom: -150px; z-index: -1;
    border-radius: 50%;
}
.bg-hearts li:nth-child(1){ left: 25%; width: 80px; height: 80px; animation-delay: 0s; }
.bg-hearts li:nth-child(2){ left: 10%; width: 20px; height: 20px; animation-delay: 2s; animation-duration: 12s; }
.bg-hearts li:nth-child(3){ left: 70%; width: 20px; height: 20px; animation-delay: 4s; }
@keyframes animate {
    0%{ transform: translateY(0) rotate(0deg); opacity: 1; border-radius: 10%; }
    100%{ transform: translateY(-1000px) rotate(720deg); opacity: 0; border-radius: 50%; }
}

/* NAVBAR */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 5%; background: rgba(255,255,255,0.85); backdrop-filter: blur(10px);
    position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--glass-border);
}
.logo { font-size: 1.5rem; font-weight: 800; color: var(--dark); letter-spacing: -1px; }
.logo .dot { color: var(--primary); }
.tagline { font-size: 0.8rem; background: var(--primary); color: white; padding: 2px 8px; border-radius: 4px; margin-left: 10px; text-transform: uppercase; font-weight: bold; }
.nav-links { display: flex; gap: 20px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--dark); font-weight: 600; font-size: 0.95rem; }

/* HERO & TOOL */
.hero { padding: 40px 20px; text-align: center; }
.main-title { font-size: 2.8rem; color: var(--dark); margin-bottom: 10px; letter-spacing: -1px; }
.highlight { color: var(--primary); }
.subtitle { font-size: 1.1rem; margin-bottom: 30px; }

.glass-panel {
    background: var(--glass-bg); backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border); border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.tool-card { max-width: 500px; margin: 0 auto; padding: 2rem; position: relative; }

/* INPUTS */
.inputs-container { display: flex; align-items: center; gap: 10px; margin-bottom: 25px; }
.input-box { flex: 1; text-align: left; }
.input-box label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; color: #a4b0be; margin-bottom: 5px; display: block; }
.input-box input {
    width: 100%; padding: 14px; border: 2px solid #dfe4ea; border-radius: 10px;
    font-size: 1.1rem; font-weight: 600; outline: none; transition: 0.3s;
    background: rgba(255,255,255,0.5); box-sizing: border-box;
}
.input-box input:focus { border-color: var(--primary); background: white; box-shadow: 0 0 0 4px rgba(255, 71, 87, 0.1); }

.vs-circle {
    width: 40px; height: 40px; background: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 1.2rem; box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-top: 20px; z-index: 2;
}

/* BUTTONS */
.controls { display: flex; gap: 10px; }
.generate-btn {
    flex: 1; padding: 16px; border: none; border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-glow));
    color: white; font-size: 1.1rem; font-weight: 700; cursor: pointer;
    position: relative; overflow: hidden; transition: transform 0.2s;
    box-shadow: 0 10px 20px rgba(255, 71, 87, 0.3);
}
.generate-btn:hover { transform: translateY(-2px); }
.generate-btn:active { transform: scale(0.98); }
.clear-btn {
    width: 50px; background: #f1f2f6; border: none; border-radius: 12px;
    font-size: 1.2rem; color: #a4b0be; cursor: pointer; transition: 0.2s;
}
.clear-btn:hover { background: #dfe4ea; color: var(--primary); }

/* RESULTS AREA */
.results-area { margin-top: 30px; border-top: 2px dashed #dfe4ea; padding-top: 20px; }
.hidden { display: none; }

/* LOVE METER */
.love-meter-container { background: #fff0f1; padding: 15px; border-radius: 12px; margin-bottom: 20px; border: 1px solid #ffccd0; }
.meter-header { display: flex; justify-content: space-between; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.progress-track { background: white; height: 12px; border-radius: 6px; overflow: hidden; margin-bottom: 5px; }
.progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #ff9ff3, #f368e0); transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1); }
.love-msg { margin: 0; font-size: 0.9rem; font-style: italic; color: var(--primary-glow); }

/* NAME GRID */
.name-grid { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.name-grid li {
    background: white; padding: 15px; border-radius: 10px; font-weight: 600; font-size: 1.05rem;
    color: var(--dark); border: 2px solid transparent; cursor: pointer; transition: 0.2s;
    text-align: center;
}
.name-grid li:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(83, 82, 237, 0.15); }

.share-btn {
    width: 100%; margin-top: 15px; padding: 12px; background: #2ed573; color: white;
    border: none; border-radius: 10px; font-weight: 700; cursor: pointer; font-size: 1rem;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}

/* CONTENT & SEO */
.content-section { max-width: 750px; margin: 50px auto; padding: 0 20px; }
.seo-article { padding: 40px; }
.article-header { border-bottom: 1px solid #eee; margin-bottom: 20px; padding-bottom: 10px; }
.article-header h2 { font-size: 2rem; color: var(--dark); margin: 0; }
.meta-data { font-size: 0.85rem; color: #a4b0be; margin-top: 5px; }
h3 { color: var(--dark); font-size: 1.4rem; margin-top: 30px; }
p { line-height: 1.7; font-size: 1.05rem; color: #57606f; }
.lead-text { font-size: 1.2rem; color: var(--dark); }

.info-box { background: #eccc6820; border-left: 4px solid #eccc68; padding: 15px; border-radius: 4px; margin: 20px 0; }
.feature-list li { margin-bottom: 10px; }
.use-cases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 20px; }
.case-card { text-align: center; padding: 20px; background: #f7f1e3; border-radius: 12px; }
.case-card i { font-size: 2rem; color: var(--primary); margin-bottom: 10px; }
.case-card h4 { margin: 10px 0 5px 0; color: var(--dark); }

/* ADS */
.ad-wrapper { display: flex; flex-direction: column; align-items: center; margin: 25px 0; width: 100%; min-height: 100px; }
.ad-label { font-size: 0.65rem; color: #ccc; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.sticky-footer-ad {
    position: fixed; bottom: 0; left: 0; width: 100%; background: white;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1); z-index: 999; display: flex; justify-content: center; padding: 8px 0;
}
.close-ad-btn {
    position: absolute; top: -15px; right: 10px; background: #2f3542; color: white;
    border: none; width: 30px; height: 30px; border-radius: 50%; font-size: 18px; cursor: pointer;
}

/* TOAST */
.toast {
    position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%);
    background: rgba(47, 53, 66, 0.9); color: white; padding: 12px 24px; border-radius: 30px;
    font-weight: 600; opacity: 0; pointer-events: none; transition: 0.3s; z-index: 1000;
}
.toast.show { opacity: 1; bottom: 120px; }

/* MOBILE */
@media (max-width: 600px) {
    .main-title { font-size: 2rem; }
    .inputs-container { flex-direction: column; }
    .vs-circle { margin: -10px 0; }
    .seo-article { padding: 20px; }
}