/* =========================================================
   YourSite.Sucks — Custom Styles
   ========================================================= */

:root {
    --bg-dark:      #0a0c18;
    --bg-card:      #13162a;
    --bg-card-alt:  #1a1e36;
    --primary:      #ff2244;
    --primary-glow: rgba(255, 34, 68, 0.35);
    --secondary:    #ff6b35;
    --gold:         #ffd700;
    --text:         #f0f2ff;
    --text-muted:   #7a84b0;
    --border:       #252b4a;
    --radius:       14px;
}

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

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-dark);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
    line-height: 1.1;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--secondary); }

/* ── Navbar ── */
.navbar {
    background: rgba(10, 12, 24, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand img {
    height: 52px;
    width: auto;
    filter: drop-shadow(0 0 10px var(--primary-glow));
    transition: filter 0.3s;
}
.navbar-brand:hover img {
    filter: drop-shadow(0 0 18px rgba(255, 34, 68, 0.6));
}

/* ── Hero Section ── */
.hero-section {
    background:
        radial-gradient(ellipse 80% 60% at 70% 40%, rgba(255, 34, 68, 0.12) 0%, transparent 65%),
        radial-gradient(ellipse 60% 50% at 20% 70%, rgba(255, 107, 53, 0.08) 0%, transparent 60%),
        var(--bg-dark);
    padding: 80px 0 60px;
    min-height: calc(100vh - 81px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.08) 0%, transparent 100%),
        radial-gradient(1px 1px at 80% 15%, rgba(255,255,255,0.06) 0%, transparent 100%),
        radial-gradient(1px 1px at 50% 80%, rgba(255,255,255,0.05) 0%, transparent 100%);
    pointer-events: none;
}

.badge-pill {
    display: inline-block;
    background: rgba(255, 34, 68, 0.15);
    border: 1px solid rgba(255, 34, 68, 0.4);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(3.2rem, 7vw, 6rem);
    color: var(--text);
    margin-bottom: 18px;
    text-shadow: 0 2px 30px rgba(0,0,0,0.5);
}

.hero-title .text-danger {
    color: var(--primary) !important;
    text-shadow: 0 0 30px var(--primary-glow);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 520px;
    line-height: 1.7;
}

/* ── Form Card ── */
.score-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,34,68,0.08);
    position: relative;
    overflow: hidden;
}

.score-form-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.score-form-card .form-label {
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.5px;
    color: var(--text);
    margin-bottom: 8px;
}

.score-form-card .form-label .text-muted {
    color: var(--text-muted) !important;
    font-weight: 400;
}

.score-form-card .input-group-text {
    background: var(--bg-card-alt);
    border: 1px solid var(--border);
    border-right: none;
    color: var(--text-muted);
}

.score-form-card .form-control {
    background: var(--bg-card-alt);
    border: 1px solid var(--border);
    border-left: none;
    color: var(--text);
    font-size: 1rem;
    padding: 12px 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.score-form-card .form-control:focus {
    background: var(--bg-card-alt);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 34, 68, 0.18);
    color: var(--text);
    outline: none;
}

.score-form-card .form-control::placeholder { color: #444a6a; }

/* ── Roast Button ── */
.btn-roast {
    background: linear-gradient(135deg, var(--primary), #cc0022);
    border: none;
    color: #fff;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    letter-spacing: 2px;
    padding: 14px 32px;
    border-radius: 10px;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 4px 20px rgba(255, 34, 68, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-roast::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent);
    opacity: 0;
    transition: opacity 0.2s;
}

.btn-roast:hover {
    background: linear-gradient(135deg, #ff3355, var(--primary));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 34, 68, 0.55);
}
.btn-roast:hover::after { opacity: 1; }

.btn-roast:active { transform: translateY(0); }

.btn-roast .spinner-border { width: 1.2rem; height: 1.2rem; }

/* ── Trust Badges ── */
.trust-badges {
    display: flex;
    gap: 24px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.trust-badges span {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ── Hero Graphic / Score Preview ── */
.hero-graphic {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 420px;
}

.score-preview-wrap {
    text-align: center;
}

.score-preview-dial {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: conic-gradient(
        var(--primary) 0%,
        var(--secondary) 40%,
        #ff9900 70%,
        rgba(255,34,68,0.15) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
    margin: 0 auto 24px;
    box-shadow:
        0 0 60px rgba(255, 34, 68, 0.3),
        0 0 120px rgba(255, 34, 68, 0.15),
        inset 0 0 40px rgba(0,0,0,0.5);
    animation: dialPulse 3s ease-in-out infinite;
}

.score-preview-dial::before {
    content: '';
    position: absolute;
    inset: 18px;
    border-radius: 50%;
    background: var(--bg-dark);
}

.score-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 7rem;
    color: var(--primary);
    line-height: 1;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 30px var(--primary-glow);
    animation: questionPulse 2s ease-in-out infinite;
}

.score-label {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
    margin-top: -10px;
}

.score-preview-text {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

@keyframes dialPulse {
    0%, 100% { box-shadow: 0 0 60px rgba(255,34,68,0.3), 0 0 120px rgba(255,34,68,0.15), inset 0 0 40px rgba(0,0,0,0.5); }
    50% { box-shadow: 0 0 80px rgba(255,34,68,0.5), 0 0 160px rgba(255,34,68,0.25), inset 0 0 40px rgba(0,0,0,0.5); }
}

@keyframes questionPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ── Stats Section ── */
.stats-section {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stat-card {
    padding: 24px 16px;
}

.stat-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 6px;
    text-shadow: 0 0 20px var(--primary-glow);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 200px;
    margin: 0 auto;
}

/* ── Section Titles ── */
.section-title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    color: var(--text);
}

.section-title .text-danger {
    color: var(--primary) !important;
    text-shadow: 0 0 20px var(--primary-glow);
}

/* ── Checks / Feature Cards ── */
.checks-section { background: var(--bg-dark); }

.check-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    height: 100%;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.check-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,34,68,0.4);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,34,68,0.1);
}

.check-icon {
    width: 52px;
    height: 52px;
    background: rgba(255,34,68,0.12);
    border: 1px solid rgba(255,34,68,0.25);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 18px;
}

.check-card h4 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text);
}

.check-card p {
    color: var(--text-muted);
    font-size: 0.93rem;
    margin: 0;
}

/* ── CTA Section ── */
.cta-section {
    background:
        radial-gradient(ellipse 70% 80% at 50% 50%, rgba(255,34,68,0.15) 0%, transparent 70%),
        var(--bg-dark);
    border-top: 1px solid var(--border);
}

.cta-title {
    font-size: clamp(2.4rem, 5vw, 4rem);
    margin-bottom: 12px;
}

.cta-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

/* ── Footer ── */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
}

.site-footer img {
    opacity: 0.75;
    filter: grayscale(30%);
}

.site-footer .text-muted { color: var(--text-muted) !important; font-size: 0.88rem; }

/* ================================================================
   RESULTS PAGE
   ================================================================ */

/* ── Results Hero ── */
.results-hero {
    padding: 70px 0 50px;
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255,34,68,0.14) 0%, transparent 65%),
        var(--bg-dark);
    text-align: center;
}

.results-url-display {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 6px 18px;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.results-url-display i { color: var(--primary); flex-shrink: 0; }

/* ── Score Dial ── */
.score-dial-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 36px;
}

.score-dial {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
    margin: 0 auto 20px;
}

.score-dial-inner {
    position: absolute;
    inset: 16px;
    border-radius: 50%;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 1;
}

.score-big-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 6rem;
    line-height: 1;
    margin-bottom: -8px;
}

.score-out-of {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    color: var(--text-muted);
}

.score-verdict {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 8px;
}

.score-tagline {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
}

/* Score color variants */
.score-zero   { background: conic-gradient(#22dd66 100%, var(--border) 0);
                box-shadow: 0 0 60px rgba(34,221,102,0.35), 0 0 120px rgba(34,221,102,0.18), inset 0 0 40px rgba(0,0,0,0.5); }
.score-low    { background: conic-gradient(#22dd66 calc(var(--pct) * 1%), var(--border) 0); }
.score-medium { background: conic-gradient(#ff9900 calc(var(--pct) * 1%), var(--border) 0); }
.score-high   { background: conic-gradient(var(--primary) calc(var(--pct) * 1%), var(--border) 0); }
.score-max    { background: conic-gradient(var(--primary) calc(var(--pct) * 1%), #660011 calc(var(--pct) * 1%), var(--border) 0); }

.score-color-zero   { color: #22dd66; text-shadow: 0 0 30px rgba(34,221,102,0.7); }
.score-color-low    { color: #22dd66; text-shadow: 0 0 20px rgba(34,221,102,0.4); }
.score-color-medium { color: #ff9900; text-shadow: 0 0 20px rgba(255,153,0,0.4); }
.score-color-high   { color: var(--primary); text-shadow: 0 0 20px var(--primary-glow); }
.score-color-max    { color: var(--primary); text-shadow: 0 0 30px rgba(255,34,68,0.6); }

/* ── Score Breakdown ── */
.results-section {
    padding: 60px 0 80px;
    background: var(--bg-dark);
}

.results-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.result-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: transform 0.2s;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.5s forwards;
}

.result-item.result-issue {
    border-left: 3px solid var(--primary);
}

.result-item.result-positive {
    border-left: 3px solid #22dd66;
}

.result-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.result-issue .result-item-icon {
    background: rgba(255,34,68,0.12);
    color: var(--primary);
}

.result-positive .result-item-icon {
    background: rgba(34,221,102,0.12);
    color: #22dd66;
}

.result-item-text {
    font-size: 0.93rem;
    color: var(--text-muted);
    line-height: 1.5;
    padding-top: 8px;
}

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ── Metric Bars ── */
.metric-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 32px;
}

.metric-section h3 {
    font-size: 1.8rem;
    margin-bottom: 24px;
}

.metric-row {
    margin-bottom: 20px;
}

.metric-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.metric-label .metric-score {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
}

.metric-bar {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.metric-bar-fill {
    height: 100%;
    border-radius: 4px;
    width: 0;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── CTA Card ── */
.cta-card {
    background: linear-gradient(135deg, rgba(255,34,68,0.15), rgba(255,107,53,0.1));
    border: 1px solid rgba(255,34,68,0.3);
    border-radius: var(--radius);
    padding: 48px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.cta-card h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 14px;
}

.cta-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto 28px;
}

.cta-card .btn-outline-light {
    border-color: rgba(255,255,255,0.2);
    color: var(--text-muted);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 11px 24px;
    transition: all 0.2s;
}

.cta-card .btn-outline-light:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.35);
    color: var(--text);
}

/* ── Error State ── */
.error-card {
    background: rgba(255,34,68,0.08);
    border: 1px solid rgba(255,34,68,0.3);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
}

/* ── Loading State ── */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10,12,24,0.94);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 9999;
    gap: 20px;
}

.loading-overlay.hidden { display: none; }

.loading-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.loading-subtext {
    font-size: 0.9rem;
    color: var(--text-muted);
    opacity: 0.6;
}

.fire-loader {
    font-size: 3rem;
    animation: fireBounce 0.6s ease-in-out infinite alternate;
}

@keyframes fireBounce {
    from { transform: scale(1) translateY(0); filter: brightness(1); }
    to   { transform: scale(1.2) translateY(-8px); filter: brightness(1.4); }
}

/* ── Misc Utilities ── */
.text-gradient {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 40px 0;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .hero-section { padding: 60px 0 50px; min-height: auto; }
    .score-form-card { padding: 28px 22px; }
}

@media (max-width: 575px) {
    .trust-badges { gap: 14px; }
    .cta-card { padding: 32px 22px; }
    .metric-section { padding: 24px 18px; }
}
