:root {
    --seo-primary: #0d6efd;
    --seo-secondary: #6c757d;
    --seo-success: #198754;
    --seo-warning: #ffc107;
    --seo-danger: #dc3545;
    --seo-dark: #212529;
}

body {
    background-color: #f8f9fa;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.hero-analyzer {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    padding: 80px 0 100px;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-analyzer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: #f8f9fa;
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

.analysis-card {
    background: white;
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    height: 100%;
}

.analysis-card:hover {
    transform: translateY(-5px);
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 auto;
    position: relative;
    background: conic-gradient(var(--score-color, #0d6efd) var(--score-percent, 0%), #e9ecef 0);
    transition: all 1s ease;
}

.score-circle::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
}

.score-value {
    position: relative;
    z-index: 1;
    color: var(--seo-dark);
}

.module-icon {
    width: 50px;
    height: 50px;
    background: rgba(13, 110, 253, 0.1);
    color: var(--seo-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.issue-item {
    border-left: 4px solid #dee2e6;
    padding: 10px 15px;
    background: #fff;
    margin-bottom: 10px;
    border-radius: 0 8px 8px 0;
    font-size: 0.95rem;
}

.issue-critical { border-left-color: var(--seo-danger); background: #fff5f5; }
.issue-high { border-left-color: var(--seo-warning); background: #fffbf0; }
.issue-medium { border-left-color: var(--seo-primary); background: #f0f7ff; }
.issue-low { border-left-color: var(--seo-secondary); background: #f8f9fa; }

.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    backdrop-filter: blur(5px);
}

.scanning-text {
    font-weight: 600;
    color: var(--seo-primary);
    margin-top: 1rem;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-analyzer {
        padding: 40px 0 60px;
    }
    .hero-analyzer h1 {
        font-size: 2rem;
    }
    .hero-analyzer .card {
        border-radius: 20px !important; /* Override rounded-pill for better mobile view */
        background: transparent;
        box-shadow: none !important;
    }
    .hero-analyzer .card-body {
        padding: 0 !important;
    }
    .hero-analyzer input, 
    .hero-analyzer button {
        width: 100% !important;
        max-width: none !important;
        margin-bottom: 10px;
        border-radius: 50rem !important; /* Keep pill shape */
        height: 50px;
    }
    .hero-analyzer button {
        margin-bottom: 0;
    }
    
    .score-circle {
        width: 100px;
        height: 100px;
        font-size: 2rem;
    }
    .score-circle::before {
        width: 80px;
        height: 80px;
    }
    
    /* Result Header Stacking */
    #resultsContainer .row.align-items-center {
        flex-direction: column;
        text-align: center;
    }
    #resultsContainer .row.align-items-center .text-md-end {
        text-align: center !important;
        margin-top: 15px;
    }
}
