/* ==========================================================================
   AICompatible.com Premium Style System (Vanilla CSS3)
   ========================================================================== */

:root {
    --bg-primary: hsl(222, 24%, 7%);
    --bg-secondary: hsl(222, 24%, 12%);
    --bg-tertiary: hsl(222, 20%, 18%);
    --border-color: hsl(222, 20%, 20%);
    --border-color-glow: hsla(150, 84%, 48%, 0.35);
    
    --text-primary: hsl(210, 40%, 98%);
    --text-secondary: hsl(215, 20%, 75%);
    --text-muted: hsl(215, 12%, 55%);
    
    --color-accent: hsl(150, 84%, 45%); /* Electric Neon Emerald */
    --color-accent-rgb: 23, 201, 100;
    --color-cyan: hsl(188, 90%, 50%);    /* Tech Cyan */
    --color-purple: hsl(265, 85%, 65%);  /* Purple accent */
    --color-red: hsl(354, 80%, 55%);
    --color-yellow: hsl(45, 95%, 55%);
    
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: 'Space Grotesk', monospace;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.5);
    --shadow-lg: 0 16px 40px rgba(0,0,0,0.7);
    --shadow-glow: 0 0 20px hsla(150, 84%, 48%, 0.15);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Resets */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Layout Utilities */
a {
    color: var(--color-cyan);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--color-accent);
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hidden {
    display: none !important;
}

/* Header Styling */
.app-header {
    background: rgba(11, 15, 23, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}
.logo-accent {
    color: var(--color-accent);
}
.logo-dot {
    color: var(--color-cyan);
}
.nav-menu {
    display: flex;
    gap: 2rem;
}
.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.25rem 0;
}
.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: var(--transition);
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}
.badge-online {
    background: rgba(23, 201, 100, 0.1);
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Main Layout */
.main-layout {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Monetization / Promo Containers */
.promo-box {
    background: var(--bg-secondary);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}
.promo-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.2rem 0.5rem;
    border-bottom-left-radius: var(--radius-sm);
    border-left: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.promo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50px;
    text-align: center;
}
.promo-wrapper p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.promo-link {
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: underline;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 3rem 0;
    background: radial-gradient(circle at 50% 0%, rgba(23, 201, 100, 0.08) 0%, transparent 60%);
}
.hero-title {
    font-family: var(--font-sans);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}
.hero-subtitle {
    max-width: 750px;
    margin: 0 auto 3rem auto;
    font-size: 1.15rem;
    color: var(--text-secondary);
}

/* Tool Input */
.tool-wrapper {
    max-width: 900px;
    margin: 0 auto;
}
.input-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}
.input-card:focus-within {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-glow);
}
.input-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.input-icon {
    font-size: 1.5rem;
}
.input-group input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-family: var(--font-sans);
}
.input-group input::placeholder {
    color: var(--text-muted);
}

/* Buttons */
.btn {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.8rem 1.6rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.btn-primary {
    background: var(--color-accent);
    color: var(--bg-primary);
}
.btn-primary:hover {
    background: var(--color-cyan);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}
.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    background: var(--border-color);
}
.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-outline:hover {
    border-color: var(--text-muted);
}
.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
}

/* Loader Animation */
.scan-loader {
    margin-top: 3rem;
    padding: 3rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    text-align: center;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(23, 201, 100, 0.1);
    border-top: 3px solid var(--color-accent);
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.loader-title {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}
.loader-steps {
    list-style: none;
    max-width: 400px;
    margin: 0 auto;
    text-align: left;
}
.step {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.75rem;
    transition: var(--transition);
}
.step::before {
    content: '○';
    position: absolute;
    left: 0;
    color: var(--text-muted);
}
.step.active {
    color: var(--text-primary);
    font-weight: 500;
}
.step.active::before {
    content: '●';
    color: var(--color-cyan);
}
.step.done {
    color: var(--color-accent);
}
.step.done::before {
    content: '✓';
    color: var(--color-accent);
    font-weight: bold;
}

/* Results Section */
.scan-results-container {
    margin-top: 3rem;
    animation: fadeIn 0.5s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.results-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 900px) {
    .results-grid {
        grid-template-columns: 1fr;
    }
}

/* Score Card */
.score-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    height: fit-content;
}
.card-title {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}
.gauge-container {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 1.5rem auto;
}
.gauge-svg {
    transform: rotate(-90deg);
}
.gauge-bg {
    fill: none;
    stroke: var(--bg-tertiary);
    stroke-width: 8;
}
.gauge-value {
    fill: none;
    stroke: var(--color-accent);
    stroke-width: 8;
    stroke-dasharray: 251.2;
    stroke-dashoffset: 251.2;
    stroke-linecap: round;
    transition: stroke-dashoffset 1.5s ease-in-out;
}
.gauge-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-mono);
}
.score-num {
    font-size: 2.25rem;
    font-weight: 700;
}
.score-total {
    font-size: 1rem;
    color: var(--text-muted);
}
.score-status {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-accent);
}
.score-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Details Tabs Card */
.details-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.tabs-header {
    display: flex;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
}
.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-weight: 600;
    padding: 1.2rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    min-width: 120px;
    transition: var(--transition);
}
.tab-btn:hover {
    color: var(--text-primary);
}
.tab-btn.active {
    color: var(--color-accent);
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--color-accent);
}

.tab-content {
    padding: 2rem;
    display: none;
}
.tab-content.active {
    display: block;
}
.tab-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.tab-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Crawler List Row styling */
.crawler-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.crawler-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}
.crawler-name {
    font-weight: 600;
    font-size: 0.95rem;
}
.crawler-bot {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
}
.crawler-status {
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
}
.status-allowed {
    background: rgba(23, 201, 100, 0.1);
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
}
.status-blocked {
    background: rgba(244, 63, 94, 0.1);
    color: var(--color-red);
    border: 1px solid var(--color-red);
}

/* Info Alerts */
.info-alert {
    padding: 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
}
.info-tip {
    background: rgba(6, 182, 212, 0.08);
    color: var(--text-primary);
    border-left: 4px solid var(--color-cyan);
}

/* Semantic / Content Metrics */
.metric-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}
.metric-box {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}
.metric-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}
.metric-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.metric-score {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.95rem;
}
.metric-bar-bg {
    height: 6px;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 0.75rem;
}
.metric-bar-fill {
    height: 100%;
    background: var(--color-accent);
    border-radius: var(--radius-full);
    width: 0%;
    transition: width 1.2s ease-out;
}
.metric-feedback {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Schemas & Generators */
.schema-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}
.schema-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}
.schema-label {
    font-weight: 600;
    font-size: 0.95rem;
}
.schema-presence {
    font-size: 0.85rem;
    font-weight: 700;
}
.present {
    color: var(--color-accent);
}
.missing {
    color: var(--color-yellow);
}
.generator-panel {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}
.generator-panel h5 {
    margin-bottom: 0.5rem;
    color: var(--color-cyan);
}
.generator-panel p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}
.code-box {
    display: block;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-cyan);
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

/* Checklist Items */
.checklist-items {
    list-style: none;
}
.checklist-item {
    padding-left: 2rem;
    position: relative;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
.checklist-item::before {
    content: '▢';
    position: absolute;
    left: 0;
    color: var(--color-yellow);
    font-size: 1.1rem;
}
.checklist-item.high-priority::before {
    color: var(--color-red);
}
.checklist-item strong {
    color: var(--text-primary);
}
.checklist-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Info Section & FAQ */
.info-section {
    margin-top: 6rem;
    border-top: 1px solid var(--border-color);
    padding-top: 4rem;
}
.section-title {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 3rem;
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}
.info-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: var(--transition);
}
.info-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-color-glow);
}
.info-card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.info-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}
.info-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.faq-section {
    max-width: 800px;
    margin: 0 auto;
}
.section-subtitle {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 2rem;
}
.faq-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    overflow: hidden;
}
.faq-question {
    padding: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}
.faq-question:hover {
    background: var(--bg-tertiary);
}
.faq-question::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--color-cyan);
}
.faq-item.active .faq-question::after {
    content: '−';
}
.faq-answer {
    padding: 0 1.25rem 1.25rem 1.25rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: none;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}
.faq-item.active .faq-answer {
    display: block;
}

/* Footer Styling */
.app-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1.5rem 0;
    margin-top: 6rem;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 3rem 2rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
}
.footer-info {
    max-width: 400px;
}
.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 1rem;
}
.footer-links {
    display: flex;
    gap: 4rem;
}
.link-group h4 {
    color: var(--text-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.25rem;
}
.link-group a {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}
.link-group a:hover {
    color: var(--color-accent);
}
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem 0 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ====================================================
   Mobile Optimization Stylesheet (Responsive Design)
   ==================================================== */
@media (max-width: 768px) {
    /* Header nav wrap */
    .header-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem 1rem;
        text-align: center;
    }
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.25rem;
    }
    .header-cta {
        display: none; /* Hide methodology badge on small mobiles to save header space */
    }
    
    /* Hero Typography */
    .hero-title {
        font-size: 1.85rem !important;
        line-height: 1.25;
        padding: 0 0.5rem;
    }
    .hero-subtitle {
        font-size: 0.95rem;
        padding: 0 1rem;
        margin-bottom: 2rem;
    }
    
    /* Input Search Form stacking */
    .input-group {
        flex-direction: column;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        gap: 0.75rem;
    }
    .input-group input {
        background: rgba(0, 0, 0, 0.3) !important;
        border: 1px solid var(--border-color) !important;
        padding: 1rem 1.25rem !important;
        border-radius: var(--radius-md) !important;
        width: 100% !important;
        height: 52px;
    }
    .input-group button {
        width: 100% !important;
        padding: 1rem !important;
        border-radius: var(--radius-md) !important;
        height: 52px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .input-group .input-icon {
        display: none; /* Hide icon when stacked to save space */
    }
    
    /* Summary Grid Stacking */
    .summary-row {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    /* Results cards stacking */
    .card-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    .issues-dashboard {
        grid-template-columns: 1fr !important;
    }
    
    /* Table responsiveness */
    .table-container, .card-body table, table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Footer chroot */
    .footer-container {
        flex-direction: column;
        gap: 2rem;
        padding: 0 1.5rem 2rem 1.5rem;
        text-align: center;
    }
    .footer-info {
        max-width: 100%;
    }
    .footer-links {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
    .link-group {
        text-align: center;
    }
    
    /* Inner pages hero adjustments */
    .hero-section {
        padding: 2rem 1rem !important;
    }
}

@media (max-width: 480px) {
    .main-layout {
        padding: 0 1rem;
        margin: 1rem auto;
    }
    .score-card {
        padding: 1.25rem;
    }
    .audit-card {
        padding: 1rem !important;
    }
}

/* Tools dropdown (17 Aug 2026) */
.nav-drop { position: relative; display: inline-block; }
.nav-drop > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.25rem;
}
.nav-drop > summary::-webkit-details-marker { display: none; }
.nav-drop > summary::after { content: "▾"; font-size: 0.65em; opacity: 0.7; }
.nav-drop-panel {
  position: absolute; top: calc(100% + 0.45rem); left: 0; min-width: 240px; z-index: 80;
  padding: 0.45rem; border-radius: 12px;
  background: rgba(10, 15, 30, 0.98); border: 1px solid var(--border-color);
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
}
.nav-drop-item {
  display: block; padding: 0.55rem 0.75rem; border-radius: 8px;
  color: var(--text-secondary); text-decoration: none; font-size: 0.85rem; font-weight: 600;
}
.nav-drop-item:hover { background: rgba(34,211,238,0.1); color: var(--color-cyan); }
@media (max-width: 900px) {
  .nav-drop { width: 100%; }
  .nav-drop-panel { position: static; box-shadow: none; margin-top: 0.35rem; min-width: 0; }
}

