/*
Theme Name: STA SEO Tool with AI
Theme URI: https://seotoolwithai.com
Description: Premium, minimal white theme for AEO, GEO, and AI Chat audits.
Version: 1.2.0
Author: Antigravity
Author URI: https://google.com
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sta-seo-tool
*/

/* Reset & Variables */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #fdfdfd;
    --bg-tertiary: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --accent: #2563eb;
    --accent-light: #eff6ff;
    --accent-hover: #1d4ed8;
    --border: #e2e8f0;
    --border-hover: #cbd5e1;
    --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.03), 0 8px 16px -6px rgba(0, 0, 0, 0.03);
    
    /* Report Colors */
    --color-pass: #10b981;
    --color-pass-light: #ecfdf5;
    --color-warn: #f59e0b;
    --color-warn-light: #fffbeb;
    --color-fail: #ef4444;
    --color-fail-light: #fef2f2;
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-family);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.25rem;
}

h1 {
    font-size: 3rem;
    letter-spacing: -0.03em;
}

h2 {
    font-size: 2.25rem;
    letter-spacing: -0.025em;
    font-weight: 800;
}

h3 {
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Layout Utilities */
.sta-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.sta-section {
    padding: 6.5rem 0;
}

/* Buttons */
.sta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.95rem;
}

.sta-btn-primary {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    border: 1px solid var(--text-primary);
}

.sta-btn-primary:hover {
    background-color: #1e293b;
    border-color: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.sta-btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.sta-btn-secondary:hover {
    background-color: var(--bg-tertiary);
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

/* Header & Navbar */
.sta-header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

.sta-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5rem;
}

.sta-logo {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.04em;
    display: flex;
    align-items: center;
}

.sta-logo span {
    color: var(--accent);
}

.sta-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    list-style: none;
}

.sta-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 550;
    transition: var(--transition);
    font-size: 0.95rem;
}

.sta-menu a:hover {
    color: var(--text-primary);
}

.sta-nav-cta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Hero Section */
.sta-hero {
    text-align: center;
    max-width: 900px;
    margin: 4.5rem auto 3rem;
}

.sta-hero h1 {
    font-size: 4rem;
    line-height: 1.15;
    margin-bottom: 1.75rem;
}

.sta-hero p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 750px;
    margin: 0 auto 2.5rem;
}

/* Features Grid */
.sta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3.5rem;
}

.sta-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 3rem;
    transition: var(--transition);
}

.sta-card:hover {
    border-color: var(--text-primary);
    box-shadow: var(--card-shadow);
    transform: translateY(-4px);
}

.sta-card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.75rem;
    display: inline-block;
    padding: 0.5rem;
    border-radius: 0.5rem;
    background-color: var(--bg-tertiary);
}

/* FAQs Section */
.sta-faq-container {
    max-width: 800px;
    margin: 4rem auto 0;
}

.sta-faq-item {
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
}

.sta-faq-question {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sta-faq-answer {
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
    display: none;
}


/* Footer */
.sta-footer {
    background-color: var(--bg-tertiary);
    border-top: 1px solid var(--border);
    padding: 5rem 0 2.5rem;
    margin-top: auto;
}

.sta-footer-grid {
    display: grid;
    grid-template-columns: 2.5fr repeat(2, 1fr);
    gap: 5rem;
    margin-bottom: 4rem;
}

.sta-footer-col h4 {
    margin-bottom: 1.75rem;
    font-weight: 800;
}

.sta-footer-col ul {
    list-style: none;
}

.sta-footer-col ul li {
    margin-bottom: 1rem;
}

.sta-footer-col ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.sta-footer-col ul li a:hover {
    color: var(--text-primary);
}

.sta-footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 2.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Forms (Login, Signup, Audits) */
.sta-form-container {
    max-width: 500px;
    margin: 5rem auto;
    padding: 3.5rem;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    background-color: var(--bg-primary);
    box-shadow: var(--card-shadow);
}

.sta-form-group {
    margin-bottom: 1.5rem;
}

.sta-form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.sta-form-input {
    width: 100%;
    padding: 0.85rem 1.15rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-family: var(--font-family);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
    background-color: var(--bg-secondary);
}

.sta-form-input:focus {
    border-color: var(--text-primary);
    background-color: var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.05);
}

/* Dashboard & Tool Interface */
.sta-dashboard-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: calc(100vh - 5rem);
}

.sta-dashboard-sidebar {
    background-color: var(--bg-tertiary);
    border-right: 1px solid var(--border);
    padding: 3rem 2rem;
}

.sta-dashboard-content {
    padding: 4rem;
    background-color: var(--bg-primary);
}

.sta-sidebar-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sta-sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.9rem 1.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: var(--transition);
    border: 1px solid transparent;
}

.sta-sidebar-link:hover,
.sta-sidebar-link.active {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.sta-stats-banner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 3.5rem;
}

.sta-stat-card {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 0.75rem;
    transition: var(--transition);
}

.sta-stat-card:hover {
    border-color: var(--border-hover);
}

.sta-stat-val {
    font-size: 2.2rem;
    font-weight: 900;
    margin-top: 0.5rem;
    color: var(--text-primary);
}

/* Progress Bar Container */
.sta-progress-container {
    width: 100%;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 9999px;
    height: 1.25rem;
    overflow: hidden;
    margin: 2rem 0 1rem;
    display: none;
    position: relative;
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.sta-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--text-primary) 0%, #334155 40%, var(--text-primary) 60%, #1e293b 100%);
    background-size: 200% auto;
    border-radius: 9999px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    animation: shimmer 2s linear infinite;
}

.sta-progress-text {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2rem;
    display: none;
    animation: fadeIn 0.3s ease-out;
}

/* Tab panels */
.sta-tab-panel {
    animation: fadeInUp 0.35s ease-out forwards;
}

/* FAQ smooth transitions */
.sta-faq-answer {
    margin-top: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, margin-top 0.2s ease, padding 0.2s ease;
    color: var(--text-secondary);
    font-size: 1.05rem;
    padding: 0;
}

.sta-faq-answer.open {
    max-height: 400px;
    margin-top: 1rem;
    padding-bottom: 0.5rem;
}



/* Premium Audit Report Styling */
.sta-report-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 2rem;
}

.sta-report-header-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 3rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    padding: 3rem;
    border-radius: 0.75rem;
    align-items: center;
    box-shadow: var(--card-shadow);
}

.sta-score-ring {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: conic-gradient(var(--accent) calc(var(--score-pct) * 1%), var(--border) 0);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.sta-score-ring::after {
    content: "";
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--bg-primary);
    position: absolute;
}

.sta-score-ring-val {
    position: relative;
    z-index: 5;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-primary);
}

.sta-report-section {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 3rem;
    box-shadow: var(--card-shadow);
}

.sta-report-section h3 {
    font-size: 1.6rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.sta-report-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    gap: 2rem;
}

.sta-report-row:last-child {
    border-bottom: none;
}

.sta-report-status-badge {
    padding: 0.35rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 9999px;
    text-transform: uppercase;
    white-space: nowrap;
}

.sta-badge-pass {
    background-color: var(--color-pass-light);
    color: var(--color-pass);
    border: 1px solid var(--color-pass);
}

.sta-badge-warning {
    background-color: var(--color-warn-light);
    color: var(--color-warn);
    border: 1px solid var(--color-warn);
}

.sta-badge-fail {
    background-color: var(--color-fail-light);
    color: var(--color-fail);
    border: 1px solid var(--color-fail);
}

.sta-report-explanation {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.sta-report-fix-box {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-left: 4px solid var(--text-primary);
    padding: 1.5rem;
    border-radius: 0.375rem;
    margin-top: 1rem;
    font-size: 0.95rem;
}

/* AI Chat Console */
.sta-chat-container {
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    height: 600px;
    background: var(--bg-primary);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.sta-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background-color: var(--bg-secondary);
}

.sta-message {
    max-width: 80%;
    padding: 1.25rem;
    border-radius: 0.75rem;
    line-height: 1.6;
    font-size: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.01);
}

.sta-message-user {
    align-self: flex-end;
    background-color: var(--text-primary);
    color: var(--bg-primary);
    border-bottom-right-radius: 0;
}

.sta-message-bot {
    align-self: flex-start;
    background-color: var(--bg-primary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-bottom-left-radius: 0;
}

.sta-message-bot ul, .sta-message-bot ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.sta-chat-input-bar {
    display: flex;
    border-top: 1px solid var(--border);
    padding: 1.5rem;
    gap: 1.25rem;
    background-color: var(--bg-primary);
}

.sta-chat-input {
    flex: 1;
    padding: 0.9rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    outline: none;
    font-family: var(--font-family);
    font-size: 0.95rem;
    background-color: var(--bg-secondary);
    transition: var(--transition);
}

.sta-chat-input:focus {
    border-color: var(--text-primary);
    background-color: var(--bg-primary);
}

/* Premium Upgrade Modal / Panel */
.sta-upgrade-blocker {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 5rem 4rem;
    text-align: center;
    max-width: 700px;
    margin: 4rem auto;
    box-shadow: var(--card-shadow);
}

.sta-upgrade-blocker h2 {
    font-size: 2.5rem;
    margin-bottom: 1.75rem;
}

.sta-upgrade-blocker p {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .sta-nav {
        flex-direction: column;
        height: auto;
        padding: 1.5rem 0;
        gap: 1.5rem;
    }
    
    .sta-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }
    
    .sta-hero h1 {
        font-size: 3rem;
    }
    
    .sta-footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .sta-dashboard-layout {
        grid-template-columns: 1fr;
    }
    
    .sta-dashboard-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 2rem;
    }
    
    .sta-dashboard-content {
        padding: 2.5rem 1.5rem;
    }
    
    .sta-report-header-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .sta-score-ring {
        margin: 0 auto;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
}

@media (max-width: 768px) {
    .sta-hero h1 {
        font-size: 2.2rem;
    }
    
    .sta-hero p {
        font-size: 1.1rem;
    }
    
    .sta-section {
        padding: 4rem 0;
    }
    
    .sta-form-container {
        padding: 2.5rem 1.5rem;
        margin: 2rem auto;
    }
    
    .sta-chat-container {
        height: 500px;
    }
    
    .sta-stats-banner {
        grid-template-columns: 1fr;
    }
    
    .sta-report-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .sta-report-section {
        padding: 2rem 1.5rem;
    }
    
    .sta-upgrade-blocker {
        padding: 3rem 1.5rem;
    }
    
    .sta-grid {
        grid-template-columns: 1fr;
    }
}

