/* style.css – PERFECTLY MATCHES all other Traffic Torch tools (Quit Risk, AI Audit, etc.) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;900&display=swap');

/* Root variables for easy theming */
:root {
  --bg-gradient: linear-gradient(to bottom right, #0f172a, #020617, #000000);
}

* { margin:0; padding:0; box-sizing:border-box; }
body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(to bottom right, #0f172a, #1e1b4b, #000000);
    color: #e2e8f0;
    min-height: 100vh;
    line-height: 1.6;
}

/* Header – exact same glass look */
header {
    background: rgba(255,102,0,0.15);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,102,0,0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}
.container { max-width: 1280px; margin: 0 auto; padding: 1rem 2rem; }

/* Hero title – huge glowing orange */
.hero h2 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    background: linear-gradient(90deg, #ff8a00, #f97316, #ff6600);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin: 3rem 0 1.5rem;
}
.hero p {
    font-size: 1.3rem;
    color: #94a3b8;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

/* Form */
form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}
input {
    padding: 1.2rem;
    border-radius: 12px;
    border: 1px solid #334155;
    background: rgba(255,255,255,0.05);
    color: white;
    font-size: 1.1rem;
}
input::placeholder { color: #64748b; }
.button {
    background: linear-gradient(45deg, #ff6600, #e65c00);
    border: none;
    padding: 1.3rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(255,102,0,0.5);
    transition: all 0.3s;
}
.button:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(255,102,0,0.7);
}

/* Score */
#overall-score h2 {
    font-size: 3.5rem;
    text-align: center;
    background: linear-gradient(90deg, #ff8a00, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 4rem 0 2rem;
}
.score-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    text-align: center;
    font-size: 3.8rem;
    font-weight: 900;
    color: #ff6600;
}

/* Cards – exact same as other tools */
.module-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,102,0,0.3);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    margin-bottom: 2rem;
}
.module-card h3 {
    background: linear-gradient(90deg, #ff6600, #000);
    padding: 1.5rem;
    font-size: 1.8rem;
    text-align: center;
    color: white;
}
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}
.side {
    background: rgba(255,255,255,0.05);
    padding: 1.8rem;
    border-radius: 12px;
    border: 1px solid rgba(255,102,0,0.2);
}
.highlight { color: #ff6600; font-weight: 900; }

/* Expand button */
.expand-btn {
    width: 100%;
    padding: 1.2rem;
    background: rgba(255,102,0,0.2);
    border: none;
    color: white;
    font-weight: 600;
    cursor: pointer;
}
.details {
    padding: 2rem;
    background: rgba(0,0,0,0.4);
    border-top: 1px solid rgba(255,102,0,0.3);
}

/* Bottom loader – matches other tools */
.bottom-loader {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, #ff6600, #e65c00);
    color: white;
    padding: 1.2rem;
    text-align: center;
    font-weight: 700;
    z-index: 1000;
    box-shadow: 0 -10px 30px rgba(255,102,0,0.5);
}
.spinner {
    display: inline-block;
    width: 24px; height: 24px;
    border: 3px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Mobile */
@media (max-width: 768px) {
    .hero h2 { font-size: 3rem; }
    .score-grid { font-size: 2.8rem; }
    .grid { grid-template-columns: 1fr; }
}


  /* LOCAL TOOL FIX – MOBILE-FRIENDLY REPORT (WORKS 100% – Dec 2025) */
  @media (max-width: 1024px) {
    /* Kill narrow containers */
    .container, .max-w-5xl, .max-w-3xl, .max-w-4xl {
      max-width: 100% !important;
      padding-left: 1rem !important;
      padding-right: 1rem !important;
    }

    /* Reduce huge padding on form + report cards */
    .p-12, .p-10, .p-8 {
      padding: 1.5rem !important;
    }

    /* Smaller title */
    .text-5xl {
      font-size: 2rem !important;
      line-height: 1.1 !important;
    }

    /* Smaller giant percentage */
    .text-9xl {
      font-size: 6rem !important;
      line-height: 1 !important;
    }
  }

  /* Optional: slightly tighter on very small phones */
  @media (max-width: 480px) {
    .p-12, .p-10 { padding: 1.25rem !important; }
    .text-5xl { font-size: 1.875rem !important; }
    .text-9xl { font-size: 5.5rem !important; }
  }