/* ════════════════════════════════════════════════════════════════════════════
   Love Calculator — Pink, Red & White Premium Light Theme
   Font: Poppins (Google Fonts)
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Design Tokens ─────────────────────────────────────────────────────────── */
:root {
    --pink:          #ff4d6d;
    --pink-hover:    #f72f54;
    --pink-soft:     #ffb3c6;
    --pink-pale:     #ffe5ec;
    --red:           #c9184a;
    --red-dark:      #a4133c;
    --white:         #ffffff;
    --off-white:     #fff8f9;
    --bg:            #fff0f3;
    --text:          #3d0018;
    --text-muted:    #8d4a60;
    --border:        rgba(255, 77, 109, 0.18);
    --shadow-soft:   0 8px 32px rgba(201, 24, 74, 0.10);
    --shadow-hover:  0 16px 48px rgba(201, 24, 74, 0.18);
    --radius:        18px;
    --radius-sm:     10px;
    --radius-pill:   999px;
    --transition:    .25s cubic-bezier(.4,0,.2,1);
}

/* ── Reset & Base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    background-image:
        radial-gradient(circle at 10% 10%, #ffd6e0 0%, transparent 45%),
        radial-gradient(circle at 90% 90%, #ffb3c6 0%, transparent 40%);
    background-attachment: fixed;
    min-height: 100vh;
    letter-spacing: .2px;
}

a { color: var(--pink); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red); }
p { line-height: 1.75; }

/* ── Navbar ─────────────────────────────────────────────────────────────────── */
.lc-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    box-shadow: 0 2px 20px rgba(201,24,74,.07);
}

.lc-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text) !important;
}
.lc-brand-icon { font-size: 1.5rem; animation: heartbeat 1.6s infinite; }
.lc-brand-text {
    background: linear-gradient(135deg, var(--pink), var(--red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lc-nav-links { display: flex; align-items: center; gap: 18px; }
.lc-nav-link  { font-weight: 500; color: var(--text); font-size: .95rem; }
.lc-nav-link:hover { color: var(--pink); }

.lc-btn-sm {
    background: linear-gradient(135deg, var(--pink), var(--red));
    color: var(--white) !important;
    font-weight: 600;
    font-size: .88rem;
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    transition: all var(--transition);
    box-shadow: 0 4px 14px rgba(255,77,109,.3);
}
.lc-btn-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,77,109,.4);
    color: var(--white) !important;
}

/* ── Main ───────────────────────────────────────────────────────────────────── */
#lc-main { padding: 40px 0 60px; min-height: calc(100vh - 140px); }

/* ── Cards ──────────────────────────────────────────────────────────────────── */
.lc-card {
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 32px;
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition), box-shadow var(--transition);
}
.lc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

@media (max-width: 576px) { .lc-card { padding: 24px 16px; } }

/* ── Gradient Heading ───────────────────────────────────────────────────────── */
.lc-gradient-text {
    background: linear-gradient(135deg, var(--pink), var(--red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    display: inline-block;
}

/* ── Inputs ─────────────────────────────────────────────────────────────────── */
.lc-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--pink-soft);
    border-radius: var(--radius-sm);
    background: var(--white);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: var(--text);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.lc-input:focus {
    border-color: var(--pink);
    box-shadow: 0 0 0 4px rgba(255,77,109,.15);
}
.lc-input::placeholder { color: #c48093; }

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.lc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--pink), var(--red));
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 14px 32px;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 6px 22px rgba(201,24,74,.30);
    text-decoration: none;
    letter-spacing: .5px;
    text-transform: uppercase;
    white-space: nowrap;
}
.lc-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(201,24,74,.40);
    color: var(--white);
}
.lc-btn:active { transform: translateY(1px); }

.lc-btn-outline {
    background: transparent;
    border: 2px solid var(--pink);
    color: var(--pink);
    box-shadow: none;
}
.lc-btn-outline:hover {
    background: var(--pink);
    color: var(--white);
    box-shadow: 0 6px 22px rgba(255,77,109,.30);
}

/* ── Share Buttons ──────────────────────────────────────────────────────────── */
.lc-share-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 16px;
}
.lc-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: .9rem;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    color: var(--white);
}
.lc-share-btn:hover { transform: translateY(-2px); filter: brightness(1.1); color: var(--white); }
.lc-share-wa   { background: linear-gradient(135deg,#25D366,#128C7E); box-shadow: 0 4px 14px rgba(37,211,102,.3); }
.lc-share-copy { background: linear-gradient(135deg, var(--pink), var(--red)); box-shadow: 0 4px 14px rgba(255,77,109,.3); }
.lc-share-more { background: linear-gradient(135deg,#4A00E0,#8E2DE2); box-shadow: 0 4px 14px rgba(74,0,224,.3); }
.lc-share-ig   { background: linear-gradient(45deg,#f09433,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888); box-shadow: 0 4px 14px rgba(220,39,67,.3); }
.lc-share-tw   { background: linear-gradient(135deg,#1DA1F2,#0d8bd4); box-shadow: 0 4px 14px rgba(29,161,242,.3); }
.lc-share-fb   { background: linear-gradient(135deg,#1877F2,#145dbf); box-shadow: 0 4px 14px rgba(24,119,242,.3); }

/* ── Link Box ───────────────────────────────────────────────────────────────── */
.lc-link-box {
    background: var(--pink-pale);
    border: 2px dashed var(--pink);
    border-radius: var(--radius-sm);
    padding: 14px 20px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--red);
    word-break: break-all;
    cursor: text;
    user-select: all;
}

/* ── Stats Badge ────────────────────────────────────────────────────────────── */
.lc-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--pink-pale);
    color: var(--red);
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: .9rem;
}

/* ── Table ──────────────────────────────────────────────────────────────────── */
.lc-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    font-size: .95rem;
}
.lc-table thead th {
    background: linear-gradient(135deg, var(--pink), var(--red));
    color: var(--white);
    font-weight: 600;
    padding: 14px 16px;
    text-align: left;
}
.lc-table thead th:first-child { border-radius: 10px 0 0 0; }
.lc-table thead th:last-child  { border-radius: 0 10px 0 0; }
.lc-table tbody td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--pink-pale);
    color: var(--text);
}
.lc-table tbody tr:hover td { background: var(--pink-pale); }
.lc-table tbody tr:last-child td { border-bottom: none; }

/* ── Tag Badges ─────────────────────────────────────────────────────────────── */
.lc-tag {
    display: inline-block;
    background: var(--pink-pale);
    color: var(--red);
    border: 1px solid var(--pink-soft);
    font-weight: 600;
    font-size: .78rem;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    margin: 3px;
}

/* ── Hero Section ───────────────────────────────────────────────────────────── */
.lc-hero {
    text-align: center;
    padding: 20px 0 10px;
}
.lc-hero-emoji { font-size: 4rem; animation: heartbeat 1.6s infinite; display: block; margin-bottom: 12px; }
.lc-hero h1    { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; line-height: 1.15; }
.lc-hero p     { font-size: 1.05rem; color: var(--text-muted); max-width: 520px; margin: 0 auto; }

/* ── Steps List ─────────────────────────────────────────────────────────────── */
.lc-steps { list-style: none; padding: 0; margin: 0; counter-reset: steps; }
.lc-steps li {
    counter-increment: steps;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--pink-pale);
    font-size: .97rem;
    color: var(--text);
}
.lc-steps li:last-child { border-bottom: none; }
.lc-steps li::before {
    content: counter(steps);
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), var(--red));
    color: var(--white);
    font-weight: 700;
    font-size: .85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Calculator Page ────────────────────────────────────────────────────────── */
.lc-calc-hero {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 16px;
    background:
        linear-gradient(135deg, rgba(255,77,109,.07) 0%, rgba(201,24,74,.05) 100%),
        url('https://images.rawpixel.com/image_800/czNmcy1wcml2YXRlL3Jhd3BpeGVsX2ltYWdlcy93ZWJzaXRlX2NvbnRlbnQvbHIvdjExMzEtcGF0dGVybi0wMS1reWk0cHdjOC5qcGc.jpg') center/cover no-repeat;
}

/* ── Loading Overlay ────────────────────────────────────────────────────────── */
.lc-loading {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(8px);
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.lc-loading-icon { font-size: 4rem; animation: heartbeat 1s infinite; }
.lc-progress-wrap {
    width: min(400px, 80vw);
    height: 12px;
    background: var(--pink-soft);
    border-radius: var(--radius-pill);
    overflow: hidden;
}
.lc-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--pink), var(--red));
    border-radius: var(--radius-pill);
    transition: width .15s ease;
}
.lc-loading-text { font-weight: 700; font-size: 1.15rem; color: var(--red); letter-spacing: .5px; }

/* ── Final Page ─────────────────────────────────────────────────────────────── */
.lc-final-wrap {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 16px;
}

/* ── SEO Content ────────────────────────────────────────────────────────────── */
.lc-seo { margin-top: 48px; }
.lc-seo h2 { font-size: 1.55rem; font-weight: 800; }
.lc-seo h3 { font-size: 1.2rem; font-weight: 700; color: var(--red); margin-top: 24px; }
.lc-seo p  { color: var(--text-muted); font-size: .97rem; }

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.lc-footer {
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 36px 0;
}
.lc-footer-inner  { text-align: center; }
.lc-footer-brand  { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 1.1rem; color: var(--text); margin-bottom: 6px; }
.lc-footer-tagline { font-size: .9rem; color: var(--text-muted); margin: 0 0 16px; }
.lc-footer-links  { display: flex; justify-content: center; gap: 20px; margin-bottom: 16px; }
.lc-footer-links a { font-size: .88rem; color: var(--text-muted); font-weight: 500; }
.lc-footer-links a:hover { color: var(--pink); }
.lc-footer-copy   { font-size: .82rem; color: #c0a0aa; margin: 0; }

/* ── Animations ─────────────────────────────────────────────────────────────── */
@keyframes heartbeat {
    0%, 100% { transform: scale(1);    }
    30%       { transform: scale(1.12); }
    60%       { transform: scale(1.05); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp .6s ease both; }
.delay-1    { animation-delay: .1s; }
.delay-2    { animation-delay: .2s; }
.delay-3    { animation-delay: .3s; }
.delay-4    { animation-delay: .4s; }

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .lc-share-grid { grid-template-columns: 1fr 1fr; }
    .lc-navbar .lc-nav-links { gap: 10px; }
    .lc-btn { font-size: .95rem; padding: 12px 24px; }
}
@media (max-width: 480px) {
    .lc-share-grid { grid-template-columns: 1fr; }
    .lc-hero h1 { font-size: 1.9rem; }
}
