/* ============================================
   Love Calculator — love-calculator.css
   Funky, animated, romantic theme
   ============================================ */

.lc-app { max-width: 100%; }

.lc-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.lc-card-title {
    font-size: 1.3rem; font-weight: 700; color: var(--text-primary);
    margin-bottom: 1.5rem; padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
    display: flex; align-items: center;
}

/* ---- Input Card ---- */
.lc-input-card {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--bg-card), rgba(236,72,153,.03));
    border: 2px solid rgba(236,72,153,.15);
}

/* Floating Hearts Animation */
.lc-floating-hearts {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; overflow: hidden; z-index: 0;
}

.lc-float-heart {
    position: absolute; bottom: -30px; left: var(--left);
    font-size: 1.2rem; opacity: 0;
    animation: lcFloatUp 6s ease-in-out var(--delay) infinite;
}

@keyframes lcFloatUp {
    0% { opacity: 0; transform: translateY(0) rotate(0deg) scale(0.5); }
    20% { opacity: 0.6; }
    80% { opacity: 0.3; }
    100% { opacity: 0; transform: translateY(-400px) rotate(45deg) scale(1.2); }
}

/* Person Row */
.lc-person-row {
    display: flex; align-items: center; gap: 16px;
    position: relative; z-index: 1; margin-bottom: 1.5rem;
}

.lc-person-card {
    flex: 1; display: flex; align-items: center; gap: 14px;
    padding: 18px; background: var(--bg-secondary);
    border: 2px solid var(--border-color); border-radius: var(--radius-lg);
    transition: all .2s;
}
.lc-person-card:focus-within { border-color: #ec4899; box-shadow: 0 0 0 3px rgba(236,72,153,.1); }

.lc-person-avatar {
    width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
}
.lc-person-1 .lc-person-avatar { background: rgba(236,72,153,.12); color: #ec4899; }
.lc-person-2 .lc-person-avatar { background: rgba(59,130,246,.12); color: #3b82f6; }

.lc-person-fields { flex: 1; display: flex; flex-direction: column; gap: 8px; }

.lc-name-input {
    width: 100%; padding: 10px 14px; font-size: 1.05rem; font-weight: 700;
    color: var(--text-primary); background: var(--bg-input);
    border: 2px solid var(--border-color); border-radius: var(--radius-md);
    outline: none; transition: border-color .2s; box-sizing: border-box;
}
.lc-name-input:focus { border-color: #ec4899; }
.lc-name-input::placeholder { color: var(--text-muted); font-weight: 500; }

.lc-dob-row { display: flex; align-items: center; gap: 8px; }

.lc-dob-input {
    flex: 1; padding: 8px 10px; font-size: .85rem; font-weight: 500;
    color: var(--text-primary); background: var(--bg-input);
    border: 2px solid var(--border-color); border-radius: var(--radius-md);
    outline: none; transition: border-color .2s; box-sizing: border-box;
}
.lc-dob-input:focus { border-color: #ec4899; }

.lc-zodiac-badge {
    font-size: .8rem; font-weight: 700; padding: 4px 10px;
    border-radius: 12px; white-space: nowrap;
    background: rgba(139,92,246,.1); color: #8b5cf6;
    display: none;
}
.lc-zodiac-badge.lc-zodiac-visible { display: inline-block; }

/* Heart Connector */
.lc-heart-connector {
    flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}

.lc-pulse-heart {
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, #ec4899, #ef4444);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.4rem;
    animation: lcPulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(236,72,153,.3);
}

@keyframes lcPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(236,72,153,.3); }
    50% { transform: scale(1.15); box-shadow: 0 0 35px rgba(236,72,153,.5); }
}

/* Calculate Button */
.lc-calculate-btn {
    width: 100%; padding: 18px; font-size: 1.2rem; font-weight: 800;
    color: #fff; border: none; border-radius: var(--radius-lg); cursor: pointer;
    background: linear-gradient(135deg, #ec4899, #ef4444, #f59e0b);
    background-size: 200% 200%;
    animation: lcGradient 3s ease infinite;
    box-shadow: 0 6px 25px rgba(236,72,153,.3);
    transition: all .2s; position: relative; z-index: 1;
    display: flex; align-items: center; justify-content: center;
}
.lc-calculate-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 35px rgba(236,72,153,.5); }

@keyframes lcGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ---- Results Card ---- */
.lc-results-card {
    border: 2px solid rgba(236,72,153,.2);
    background: linear-gradient(135deg, var(--bg-card), rgba(236,72,153,.02));
}

/* Score Hero */
.lc-score-hero { text-align: center; padding: 1rem 0 2rem; }

.lc-score-names { margin-bottom: 1.5rem; }
.lc-score-name1, .lc-score-name2 {
    font-size: 1.5rem; font-weight: 800; color: var(--text-primary);
}
.lc-score-name1 { color: #ec4899; }
.lc-score-name2 { color: #3b82f6; }
.lc-score-amp {
    font-size: 1.2rem; font-weight: 400; color: var(--text-muted);
    margin: 0 12px; font-style: italic;
}

/* Score Ring */
.lc-score-ring-wrap {
    position: relative; width: 220px; height: 220px; margin: 0 auto 1.5rem;
}

.lc-score-ring { width: 100%; height: 100%; transform: rotate(-90deg); }

.lc-ring-bg {
    fill: none; stroke: var(--bg-tertiary); stroke-width: 12;
}

.lc-ring-fill {
    fill: none; stroke: url(#lcGrad); stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 534; stroke-dashoffset: 534;
    transition: stroke-dashoffset 2s cubic-bezier(.4,0,.2,1);
}

.lc-score-center {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    display: flex; align-items: baseline;
}
.lc-score-pct {
    font-size: 4rem; font-weight: 900; line-height: 1;
    background: linear-gradient(135deg, #ec4899, #ef4444);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.lc-score-pct-sign {
    font-size: 1.5rem; font-weight: 700;
    background: linear-gradient(135deg, #ec4899, #ef4444);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lc-score-verdict {
    font-size: 1.6rem; font-weight: 800; margin-bottom: 6px;
}
.lc-score-tagline {
    font-size: 1rem; color: var(--text-muted); font-style: italic;
}

/* Verdict Colors */
.lc-verdict-soulmate { color: #10b981; }
.lc-verdict-great { color: #22c55e; }
.lc-verdict-good { color: #3b82f6; }
.lc-verdict-moderate { color: #f59e0b; }
.lc-verdict-low { color: #ef4444; }

/* ---- Compatibility Bars ---- */
.lc-compat-section { margin-bottom: 2rem; }
.lc-section-title { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 1rem; }

.lc-compat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

.lc-compat-item {
    padding: 14px; background: var(--bg-secondary);
    border: 1px solid var(--border-color); border-radius: var(--radius-md);
}

.lc-compat-header {
    display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.lc-compat-icon { font-size: 1.1rem; }
.lc-compat-label { flex: 1; font-size: .85rem; font-weight: 600; color: var(--text-secondary); }
.lc-compat-value { font-size: .9rem; font-weight: 800; color: var(--text-primary); font-family: 'JetBrains Mono', monospace; }

.lc-compat-bar {
    height: 8px; background: var(--bg-tertiary); border-radius: 4px; overflow: hidden;
}
.lc-compat-fill {
    height: 100%; border-radius: 4px; transition: width 1.5s cubic-bezier(.4,0,.2,1);
}
.lc-fill-pink { background: linear-gradient(90deg, #ec4899, #f472b6); }
.lc-fill-purple { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.lc-fill-red { background: linear-gradient(90deg, #ef4444, #f87171); }
.lc-fill-blue { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.lc-fill-cyan { background: linear-gradient(90deg, #06b6d4, #22d3ee); }
.lc-fill-amber { background: linear-gradient(90deg, #f59e0b, #fbbf24); }

/* ---- Zodiac Section ---- */
.lc-zodiac-card {
    padding: 24px; background: linear-gradient(135deg, rgba(139,92,246,.05), rgba(236,72,153,.05));
    border: 2px solid rgba(139,92,246,.15); border-radius: var(--radius-lg);
    text-align: center;
}

.lc-zodiac-pair {
    display: flex; align-items: center; justify-content: center; gap: 24px;
    margin-bottom: 16px;
}

.lc-zodiac-sign { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.lc-zodiac-emoji { font-size: 2.5rem; }
.lc-zodiac-name { font-size: .9rem; font-weight: 700; color: var(--text-primary); }

.lc-zodiac-heart {
    width: 60px; height: 60px; border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 15px rgba(139,92,246,.3);
}
.lc-zodiac-score { font-size: 1rem; font-weight: 900; color: #fff; }

.lc-zodiac-desc {
    font-size: .95rem; color: var(--text-secondary); line-height: 1.6;
    margin: 0; max-width: 500px; margin: 0 auto;
}

.lc-zodiac-section { margin-bottom: 2rem; }

/* ---- Analysis Section ---- */
.lc-analysis-section { margin-bottom: 2rem; }

.lc-analysis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.lc-analysis-box {
    padding: 18px; border-radius: var(--radius-lg);
}
.lc-analysis-strengths {
    background: rgba(16,185,129,.05); border: 1px solid rgba(16,185,129,.15);
}
.lc-analysis-challenges {
    background: rgba(245,158,11,.05); border: 1px solid rgba(245,158,11,.15);
}

.lc-analysis-box h4 {
    font-size: .95rem; font-weight: 700; margin-bottom: 10px;
}
.lc-analysis-strengths h4 { color: #10b981; }
.lc-analysis-challenges h4 { color: #f59e0b; }

.lc-analysis-box ul {
    list-style: none; padding: 0; margin: 0;
}
.lc-analysis-box li {
    font-size: .85rem; color: var(--text-secondary); padding: 6px 0;
    border-bottom: 1px solid var(--border-color); line-height: 1.5;
}
.lc-analysis-box li:last-child { border-bottom: none; }
.lc-analysis-box li::before { margin-right: 8px; }
.lc-analysis-strengths li::before { content: '✅'; }
.lc-analysis-challenges li::before { content: '⚠️'; }

/* ---- Advice Section ---- */
.lc-advice-section { margin-bottom: 2rem; }

.lc-advice-card {
    display: flex; align-items: flex-start; gap: 16px;
    padding: 20px; background: linear-gradient(135deg, rgba(236,72,153,.05), rgba(139,92,246,.05));
    border: 2px solid rgba(236,72,153,.15); border-radius: var(--radius-lg);
}
.lc-advice-icon { font-size: 2rem; flex-shrink: 0; }
.lc-advice-text {
    font-size: 1rem; color: var(--text-secondary); line-height: 1.7;
    margin: 0; font-style: italic;
}

/* ---- Love Language ---- */
.lc-language-section { margin-bottom: 2rem; }

.lc-language-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.lc-language-card {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 20px; background: var(--bg-secondary);
    border: 2px solid var(--border-color); border-radius: var(--radius-lg);
    transition: all .2s;
}
.lc-language-card:hover { border-color: rgba(236,72,153,.3); transform: translateY(-2px); }

.lc-language-name { font-size: .8rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.lc-language-emoji { font-size: 2.5rem; margin-bottom: 8px; }
.lc-language-type { font-size: 1.1rem; font-weight: 800; color: var(--text-primary); margin-bottom: 4px; }
.lc-language-desc { font-size: .8rem; color: var(--text-muted); line-height: 1.4; }

/* ---- Fun Facts ---- */
.lc-fun-section { margin-bottom: 2rem; }

.lc-fun-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.lc-fun-item {
    padding: 16px; text-align: center;
    background: var(--bg-secondary); border: 1px solid var(--border-color);
    border-radius: var(--radius-md); transition: all .15s;
}
.lc-fun-item:hover { transform: translateY(-2px); }

.lc-fun-emoji { font-size: 1.8rem; display: block; margin-bottom: 6px; }
.lc-fun-text { font-size: .8rem; color: var(--text-secondary); line-height: 1.4; font-weight: 600; }

/* ---- Actions ---- */
.lc-actions { display: flex; justify-content: center; gap: 12px; margin-top: 1.5rem; }

.lc-action-btn {
    padding: 12px 28px; font-size: 1rem; font-weight: 700;
    border: none; border-radius: var(--radius-lg); cursor: pointer;
    transition: all .2s; display: flex; align-items: center;
}
.lc-action-pdf {
    color: #fff; background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 4px 15px rgba(239,68,68,.25);
}
.lc-action-pdf:hover { transform: translateY(-2px); }
.lc-action-retry {
    color: var(--text-secondary); background: var(--bg-secondary);
    border: 2px solid var(--border-color);
}
.lc-action-retry:hover { border-color: #ec4899; color: #ec4899; }

/* ---- History ---- */
.lc-history-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 1rem; }

.lc-history-item {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 16px; background: var(--bg-secondary);
    border: 2px solid var(--border-color); border-radius: var(--radius-lg);
    cursor: pointer; transition: all .15s;
}
.lc-history-item:hover { border-color: rgba(236,72,153,.3); transform: translateY(-2px); }

.lc-history-names { font-size: .85rem; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.lc-history-score {
    font-size: 1.8rem; font-weight: 900;
    background: linear-gradient(135deg, #ec4899, #ef4444);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.lc-history-verdict { font-size: .75rem; font-weight: 600; color: var(--text-muted); }

.lc-clear-history {
    padding: 6px 16px; font-size: .8rem; font-weight: 600;
    color: var(--text-muted); background: transparent;
    border: 1px solid var(--border-color); border-radius: var(--radius-md);
    cursor: pointer; transition: all .15s;
}
.lc-clear-history:hover { border-color: #ef4444; color: #ef4444; }

/* ---- Share ---- */
.lc-share-section { text-align: center; }
.lc-share-note { font-size: .85rem; color: var(--text-muted); margin-bottom: 12px; }
.lc-share-row { display: flex; justify-content: center; gap: 10px; }
.lc-share-btn {
    width: 44px; height: 44px; border-radius: 50%; border: none;
    color: #fff; font-size: 1.1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all .2s;
}
.lc-share-btn:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0,0,0,.2); }

/* ---- Steps ---- */
.lc-steps-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.lc-step-item {
    display: flex; align-items: flex-start; gap: 14px; padding: 16px;
    background: var(--bg-secondary); border: 1px solid var(--border-color);
    border-radius: var(--radius-md); transition: all .15s;
}
.lc-step-item:hover { border-color: rgba(236,72,153,.3); }

.lc-step-num {
    width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: .95rem; font-weight: 800; color: #fff;
    background: linear-gradient(135deg, #ec4899, #ef4444);
}

.lc-step-content { display: flex; flex-direction: column; }
.lc-step-content strong { font-size: .9rem; color: var(--text-primary); margin-bottom: 3px; }
.lc-step-content span { font-size: .8rem; color: var(--text-muted); line-height: 1.5; }

/* ---- Info & FAQ ---- */
.lc-info-block {
    padding: 1.25rem; background: var(--bg-secondary); border-radius: var(--radius-md);
    margin-bottom: 1rem; border-left: 4px solid #ec4899;
}
.lc-info-block:last-child { margin-bottom: 0; }
.lc-info-block h3 { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); margin-bottom: .5rem; }
.lc-info-block p { font-size: .95rem; color: var(--text-secondary); margin-bottom: 0; line-height: 1.6; }

.lc-faq-item { padding: 1.25rem; background: var(--bg-secondary); border-radius: var(--radius-md); margin-bottom: 1rem; }
.lc-faq-item:last-child { margin-bottom: 0; }
.lc-faq-item h3 { font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: .5rem; }
.lc-faq-item p { font-size: .95rem; color: var(--text-secondary); margin-bottom: 0; line-height: 1.6; }

/* ---- Disclaimer ---- */
.lc-disclaimer {
    padding: 14px 20px; font-size: .8rem; color: var(--text-muted);
    background: var(--bg-secondary); border: 1px solid var(--border-color);
    border-radius: var(--radius-md); line-height: 1.5;
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .lc-compat-grid { grid-template-columns: repeat(2, 1fr); }
    .lc-fun-grid { grid-template-columns: repeat(2, 1fr); }
    .lc-steps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767.98px) {
    .lc-card { padding: 1.25rem; }
    .lc-person-row { flex-direction: column; }
    .lc-heart-connector { transform: rotate(90deg); margin: -8px 0; }
    .lc-score-pct { font-size: 3rem; }
    .lc-score-name1, .lc-score-name2 { font-size: 1.2rem; }
    .lc-compat-grid { grid-template-columns: 1fr; }
    .lc-analysis-grid { grid-template-columns: 1fr; }
    .lc-language-grid { grid-template-columns: 1fr; }
    .lc-fun-grid { grid-template-columns: 1fr; }
    .lc-steps-grid { grid-template-columns: 1fr; }
    .lc-actions { flex-direction: column; }
    .lc-action-btn { width: 100%; justify-content: center; }
    .lc-zodiac-pair { gap: 14px; }
    .lc-zodiac-emoji { font-size: 2rem; }
    .lc-history-grid { grid-template-columns: repeat(2, 1fr); }
    .lc-person-avatar { width: 42px; height: 42px; font-size: 1.1rem; }
}

/* Shake animation */
@keyframes lcShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}
