/* LinkUp — Custom Styles */

/* Hero gradient overlay */
.hero-overlay {
    background: linear-gradient(to top, rgba(15,20,25,0.82) 0%, rgba(15,20,25,0.15) 50%, transparent 75%);
}

[data-theme="light"] .hero-overlay {
    background: linear-gradient(to top, rgba(248,249,250,0.82) 0%, rgba(248,249,250,0.15) 50%, transparent 75%);
}

/* Ensure all images render at full crispness */
img {
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Match score circle */
.score-ring {
    transform: rotate(-90deg);
    transition: stroke-dashoffset 1.5s ease-out;
}

.score-ring-bg {
    stroke: var(--border);
}

.score-ring-fill {
    stroke: var(--primary);
    stroke-linecap: round;
    filter: drop-shadow(0 0 8px var(--primary));
}

/* Progress bar */
.progress-bar {
    height: 3px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.4s ease;
}

/* Interest pill tags */
.interest-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
}

[data-theme="dark"] .interest-pill {
    background: rgba(255,255,255,0.06);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

[data-theme="light"] .interest-pill {
    background: rgba(0,0,0,0.04);
    color: var(--text-dark);
    border: 1px solid rgba(0,0,0,0.08);
}

.interest-pill:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

/* Quiz option cards */
.quiz-option {
    padding: 16px 20px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 14px;
}

[data-theme="dark"] .quiz-option {
    background: var(--bg-card);
    border: 2px solid var(--border);
}

[data-theme="light"] .quiz-option {
    background: #ffffff;
    border: 2px solid rgba(0,0,0,0.08);
}

.quiz-option:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.quiz-option.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}

.quiz-option.selected .option-check {
    background: var(--primary);
    border-color: var(--primary);
}

.option-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: 92vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius);
}

/* Testimonial card */
.testimonial-card {
    min-width: 280px;
    max-width: 320px;
    flex-shrink: 0;
    padding: 24px;
    border-radius: var(--radius);
    scroll-snap-align: start;
}

/* Desktop layout */
@media (min-width: 1024px) {
    .desktop-layout {
        display: grid;
        grid-template-columns: 400px 1fr;
        gap: 40px;
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px 40px;
    }

    .desktop-sidebar {
        position: sticky;
        top: 80px;
        align-self: start;
    }
}

/* Stat card */
.stat-card {
    padding: 16px;
    border-radius: var(--radius);
    text-align: center;
}

[data-theme="dark"] .stat-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
}

[data-theme="light"] .stat-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: var(--shadow-sm);
}

/* Category bar chart */
.category-bar {
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

[data-theme="dark"] .category-bar {
    background: rgba(255,255,255,0.06);
}

[data-theme="light"] .category-bar {
    background: rgba(0,0,0,0.06);
}

.category-fill {
    height: 100%;
    border-radius: 4px;
    background: var(--primary);
    transition: width 1s ease-out;
}

/* Form inputs */
.form-input {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 15px;
    transition: all 0.2s ease;
    outline: none;
}

[data-theme="dark"] .form-input {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
}

[data-theme="light"] .form-input {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.12);
    color: var(--text-dark);
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-input::placeholder {
    color: var(--text-secondary);
}

/* Verified badge */
.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: rgba(45,198,83,0.15);
    color: var(--success);
    font-size: 12px;
    font-weight: 600;
}

/* Scale/slider */
.scale-option {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
}

[data-theme="dark"] .scale-option {
    background: var(--bg-card);
    border: 2px solid var(--border);
    color: var(--text-secondary);
}

[data-theme="light"] .scale-option {
    background: #ffffff;
    border: 2px solid rgba(0,0,0,0.08);
    color: var(--text-dark);
}

.scale-option:hover,
.scale-option.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
}

/* Section headers */
.section-label {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 16px;
}

[data-theme="dark"] .section-label { color: var(--text-primary); }
[data-theme="light"] .section-label { color: var(--text-dark); }

/* Floating dots background decoration */
.bg-dots {
    background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
    background-size: 24px 24px;
}