/* SEO Checker Styles */
:root {
    --primary-color: #0d6efd;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-bg: #f8f9fa;
    --dark-text: #212529;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.card-header {
    border-radius: 15px 15px 0 0 !important;
    border-bottom: none;
    font-weight: 600;
}

.seo-score {
    font-size: 3rem;
    font-weight: bold;
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: scale(1.05);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: 500;
    margin-top: 0.5rem;
}

.seo-check {
    padding: 0.75rem;
    border-radius: 8px;
    background: white;
    margin-bottom: 0.5rem;
    border: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.seo-check:hover {
    background-color: #f8f9fa;
}

.results-container {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-control-lg {
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control-lg:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.btn-lg {
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group .btn-lg {
    border-radius: 0 50px 50px 0;
}

.table td {
    vertical-align: middle;
    padding: 0.75rem;
    border-top: 1px solid #f1f3f4;
}

.table td:first-child {
    font-weight: 600;
    width: 40%;
}

.alert {
    border: none;
    border-radius: 12px;
    font-weight: 500;
}

.badge {
    font-size: 0.9em;
    padding: 0.5em 0.8em;
}

footer {
    margin-top: auto;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    text-decoration: underline;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Progress Bars */
.progress {
    height: 8px;
    border-radius: 50px;
    background-color: #e9ecef;
}

.progress-bar {
    border-radius: 50px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .seo-score {
        font-size: 2rem;
        padding: 0.75rem 1.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .input-group .form-control-lg {
        border-radius: 50px;
        margin-bottom: 1rem;
    }
    
    .input-group .btn-lg {
        border-radius: 50px;
    }
}

/* Score Colors */
.score-excellent {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.score-good {
    background: linear-gradient(135deg, #17a2b8, #20c997);
}

.score-fair {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.score-poor {
    background: linear-gradient(135deg, #dc3545, #e83e8c);
}

/* Custom Icons */
.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.icon-success {
    background-color: rgba(25, 135, 84, 0.1);
    color: var(--success-color);
}

.icon-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
}

.icon-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

/* Tooltip Styles */
.tooltip-info {
    position: relative;
    cursor: help;
}

.tooltip-info::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.tooltip-info:hover::after {
    opacity: 1;
}

/* Animation Classes */
.slide-in {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --light-bg: #1a1a1a;
        --dark-text: #ffffff;
    }
    
    body {
        background-color: var(--light-bg);
        color: var(--dark-text);
    }
    
    .card {
        background-color: #2d2d2d;
        color: var(--dark-text);
    }
    
    .table td {
        border-top-color: #404040;
    }
    
    .seo-check {
        background-color: #2d2d2d;
        border-color: #404040;
    }
    
    .seo-check:hover {
        background-color: #3a3a3a;
    }
    
    .stat-card {
        background-color: #2d2d2d;
    }
}

/* Enhanced SEO Category Styles */
.category-section {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.category-section h6 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: var(--primary-color);
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.category-checks {
    padding-left: 0.5rem;
}

/* Category-specific accent colors */
.category-section.technical { border-left: 4px solid #6f42c1; }
.category-section.social-media { border-left: 4px solid #e83e8c; }
.category-section.accessibility { border-left: 4px solid #20c997; }
.category-section.advanced { border-left: 4px solid #fd7e14; }
.category-section.content { border-left: 4px solid #198754; }
.category-section.images { border-left: 4px solid #0dcaf0; }
.category-section.links { border-left: 4px solid #6610f2; }
.category-section.title-meta { border-left: 4px solid #dc3545; }