/* Guardian 1 SEO Tool - Frontend Styles */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500&display=swap');

:root {
    --g1-primary:   #0a0f1e;
    --g1-secondary: #0d1b3e;
    --g1-accent:    #00d4ff;
    --g1-gold:      #f0b429;
    --g1-green:     #00e676;
    --g1-red:       #ff5252;
    --g1-orange:    #ff9100;
    --g1-card:      #111827;
    --g1-border:    rgba(0,212,255,0.15);
    --g1-text:      #e2e8f0;
    --g1-muted:     #94a3b8;
    --g1-radius:    14px;
    --g1-shadow:    0 8px 32px rgba(0,0,0,0.4);
}

/* WRAP */
.gst-tool-wrap {
    font-family: 'DM Sans', sans-serif;
    color: var(--g1-text);
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px 60px;
}

/* HERO */
.gst-hero {
    background: linear-gradient(135deg, #0a0f1e 0%, #0d1b3e 50%, #0a1628 100%);
    border: 1px solid var(--g1-border);
    border-radius: 20px;
    padding: 52px 40px 44px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 32px;
}
.gst-hero::before {
    content: '';
    position: absolute;
    top: -80px; left: 50%; transform: translateX(-50%);
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(0,212,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.gst-hero-badge {
    display: inline-block;
    background: linear-gradient(90deg, var(--g1-accent), #0099cc);
    color: #000;
    font-family: 'Syne', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 5px 16px;
    border-radius: 100px;
    margin-bottom: 20px;
}
.gst-hero-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(24px, 5vw, 40px);
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.2;
}
.gst-hero-sub {
    color: var(--g1-muted);
    font-size: 16px;
    margin: 0 0 32px;
}

/* INPUT */
.gst-input-group {
    display: flex;
    gap: 12px;
    max-width: 640px;
    margin: 0 auto 12px;
    flex-wrap: wrap;
}
.gst-input-wrapper {
    flex: 1;
    min-width: 200px;
    position: relative;
}
.gst-input-icon {
    position: absolute;
    left: 16px; top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
}
.gst-url-input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--g1-border);
    border-radius: var(--g1-radius);
    color: #fff;
    font-size: 15px;
    font-family: 'DM Sans', sans-serif;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.gst-url-input:focus {
    border-color: var(--g1-accent);
    box-shadow: 0 0 0 3px rgba(0,212,255,0.15);
}
.gst-url-input::placeholder { color: #4a5568; }

.gst-run-btn {
    padding: 16px 28px;
    background: linear-gradient(135deg, var(--g1-accent), #0099cc);
    border: none;
    border-radius: var(--g1-radius);
    color: #000;
    font-family: 'Syne', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}
.gst-run-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,212,255,0.35);
}
.gst-run-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.gst-disclaimer { color: #4a5568; font-size: 12px; margin: 0; }

/* ERROR */
.gst-error {
    background: rgba(255,82,82,0.1);
    border: 1px solid rgba(255,82,82,0.3);
    border-radius: var(--g1-radius);
    color: #ff8a80;
    padding: 16px 20px;
    margin-bottom: 24px;
    text-align: center;
}

/* RESULTS HEADER */
.gst-results-header {
    background: var(--g1-card);
    border: 1px solid var(--g1-border);
    border-radius: 20px;
    padding: 36px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}
.gst-overall-score { display: flex; align-items: center; gap: 24px; }

/* SCORE RING */
.gst-score-ring { position: relative; width: 120px; height: 120px; flex-shrink: 0; }
.gst-ring-svg { width: 120px; height: 120px; }
.gst-ring-progress {
    stroke: var(--g1-accent);
    transition: stroke-dashoffset 1.2s cubic-bezier(0.4,0,0.2,1), stroke 0.3s;
}
.gst-ring-score {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    text-align: center;
}
.gst-ring-score span {
    font-family: 'Syne', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    display: block;
    line-height: 1;
}
.gst-ring-score small { color: var(--g1-muted); font-size: 12px; }

.gst-overall-label h3 {
    font-family: 'Syne', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #fff;
}
.gst-overall-label p { color: var(--g1-muted); margin: 0; font-size: 14px; }
.gst-audited-url { margin-left: auto; color: var(--g1-muted); font-size: 13px; }
.gst-audited-url strong { color: var(--g1-accent); display: block; margin-top: 4px; word-break: break-all; }

/* SCORE CARDS */
.gst-scores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}
.gst-score-card {
    background: var(--g1-card);
    border: 1px solid var(--g1-border);
    border-radius: var(--g1-radius);
    padding: 24px 16px;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s;
}
.gst-score-card:hover { border-color: var(--g1-accent); transform: translateY(-2px); }
.gst-card-icon { font-size: 24px; margin-bottom: 8px; }
.gst-card-label { color: var(--g1-muted); font-size: 12px; margin-bottom: 10px; }
.gst-card-score {
    font-family: 'Syne', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
}

/* SECTIONS */
.gst-section {
    background: var(--g1-card);
    border: 1px solid var(--g1-border);
    border-radius: 20px;
    padding: 28px 32px;
    margin-bottom: 20px;
}
.gst-section-title {
    font-family: 'Syne', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 20px;
}

/* VITALS */
.gst-vitals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}
.gst-vital {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.vital-label { color: var(--g1-muted); font-size: 12px; }
.vital-value { font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 700; color: var(--g1-accent); }

/* CHECKLIST */
.gst-checklist {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}
.gst-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    border: 1px solid transparent;
}
.gst-check-item.pass {
    background: rgba(0,230,118,0.06);
    border-color: rgba(0,230,118,0.2);
    color: var(--g1-green);
}
.gst-check-item.fail {
    background: rgba(255,82,82,0.06);
    border-color: rgba(255,82,82,0.2);
    color: #ff8a80;
}
.gst-check-icon { font-size: 16px; flex-shrink: 0; }

/* LEAD SECTION */
.gst-lead-section {
    background: linear-gradient(135deg, #0d1b3e, #0a2040);
    border: 1px solid rgba(240,180,41,0.3);
    border-radius: 20px;
    padding: 2px;
    margin-bottom: 20px;
}
.gst-lead-inner {
    background: linear-gradient(135deg, #0a0f1e, #0d1b3e);
    border-radius: 18px;
    padding: 40px;
    text-align: center;
}
.gst-lead-badge {
    display: inline-block;
    background: linear-gradient(90deg, var(--g1-gold), #e09000);
    color: #000;
    font-family: 'Syne', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 16px;
}
.gst-lead-inner h3 {
    font-family: 'Syne', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px;
}
.gst-lead-inner p { color: var(--g1-muted); margin: 0 0 28px; }

/* LEAD FORM */
.gst-lead-form { max-width: 580px; margin: 0 auto; }
.gst-form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.gst-lead-form input[type="text"],
.gst-lead-form input[type="email"],
.gst-lead-form input[type="tel"] {
    flex: 1;
    min-width: 180px;
    padding: 14px 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--g1-border);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.gst-lead-form input:focus { border-color: var(--g1-gold); }
.gst-lead-form input::placeholder { color: #4a5568; }

.gst-submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--g1-gold), #cc8800);
    border: none;
    border-radius: 10px;
    color: #000;
    font-family: 'Syne', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 4px;
}
.gst-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(240,180,41,0.35);
}

/* LEAD SUCCESS */
.gst-lead-success { text-align: center; padding: 20px 0; }
.gst-lead-success span { font-size: 40px; display: block; margin-bottom: 10px; }
.gst-lead-success p { color: var(--g1-green); font-size: 16px; margin-bottom: 16px; }
.gst-whatsapp-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #25d366;
    color: #fff;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    font-family: 'Syne', sans-serif;
    transition: transform 0.2s;
}
.gst-whatsapp-btn:hover { transform: translateY(-2px); color: #fff; }

/* FOOTER BRAND */
.gst-footer-brand {
    text-align: center;
    color: #2d3748;
    font-size: 13px;
    padding-top: 10px;
}
.gst-footer-brand strong { color: var(--g1-accent); }

/* SCORE COLORS */
.score-good    { color: var(--g1-green)  !important; }
.score-average { color: var(--g1-orange) !important; }
.score-poor    { color: var(--g1-red)    !important; }

/* LOADING ANIMATION */
.gst-loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--g1-muted);
}
.gst-loading-dots span {
    display: inline-block;
    width: 10px; height: 10px;
    background: var(--g1-accent);
    border-radius: 50%;
    margin: 0 4px;
    animation: gst-bounce 1.2s ease-in-out infinite;
}
.gst-loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.gst-loading-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes gst-bounce {
    0%, 80%, 100% { transform: scale(0.7); opacity: 0.5; }
    40% { transform: scale(1.2); opacity: 1; }
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .gst-hero { padding: 36px 20px 32px; }
    .gst-results-header { flex-direction: column; align-items: flex-start; gap: 16px; }
    .gst-section { padding: 22px 18px; }
    .gst-lead-inner { padding: 28px 18px; }
    .gst-audited-url { margin-left: 0; }
}
