/* SEO BotX Custom Styles */

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--dark-color) 0%, #2c3e50 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* SEO Analyzer Card */
.seo-analyzer-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: none;
    overflow: hidden;
}

.seo-analyzer-card .card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0b5ed7 100%);
    border: none;
    padding: 1.5rem;
}

/* Form Controls */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-control-lg {
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0b5ed7 100%);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.4);
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
    border: none;
    font-weight: 600;
}

/* Progress Bars */
.progress {
    height: 8px;
    border-radius: 10px;
    background-color: #e9ecef;
}

.progress-bar {
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* SEO Score Circle */
.seo-score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: white;
    margin: 0 auto;
    position: relative;
    background: conic-gradient(var(--success-color) 0deg, var(--success-color) var(--progress), #e9ecef var(--progress));
}

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

.seo-score-text {
    position: relative;
    z-index: 1;
}

/* Analysis Results */
.analysis-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.analysis-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.analysis-item:last-child {
    border-bottom: none;
}

.analysis-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.analysis-icon.success {
    background-color: rgba(25, 135, 84, 0.1);
    color: var(--success-color);
}

.analysis-icon.warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
}

.analysis-icon.danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

.analysis-content {
    flex: 1;
}

.analysis-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.analysis-description {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Navbar */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, #2c3e50 100%) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
        text-align: center;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .seo-score-circle {
        width: 100px;
        height: 100px;
        font-size: 1.5rem;
    }
    
    .seo-score-circle::before {
        width: 70px;
        height: 70px;
    }
    
    .analysis-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .card {
        background-color: #2c3e50;
        color: white;
    }
    
    .form-control {
        background-color: #34495e;
        border-color: #4a5f7a;
        color: white;
    }
    
    .form-control:focus {
        background-color: #34495e;
        border-color: var(--primary-color);
        color: white;
    }
}

/* Custom Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0b5ed7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(135deg, var(--primary-color) 0%, #0b5ed7 100%) 1;
}

.shadow-primary {
    box-shadow: 0 0.5rem 1rem rgba(13, 110, 253, 0.15);
}

/* Animations */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Dashboard Styles */
.dashboard-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0;
}

.stat-label {
    color: #6c757d;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Table Styles */
.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

.table thead th {
    border-top: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: #6c757d;
}

/* Badge Styles */
.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 10px;
}

.alert-success {
    background-color: rgba(25, 135, 84, 0.1);
    color: var(--success-color);
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: #856404;
}

.alert-info {
    background-color: rgba(13, 202, 240, 0.1);
    color: #0c5460;
}

/* Auth Pages */
.auth-bg {
    background: radial-gradient(1200px circle at 20% 0%, rgba(13,110,253,.12), transparent 40%),
                radial-gradient(1000px circle at 100% 100%, rgba(102,16,242,.10), transparent 40%),
                linear-gradient(180deg, #f6f9ff 0%, #f4f7fb 100%);
    min-height: 100vh;
}

.auth-card {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(13,110,253,0.12);
}

.auth-header {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 60%, #6610f2 100%);
    padding: 28px 24px;
}

.auth-brand .logo-professional {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transform: scale(.95);
}

.auth-brand .logo-badge-professional {
    box-shadow: inset 0 -6px 14px rgba(255,255,255,.12), 0 4px 14px rgba(0,0,0,.15);
}

.auth-subtitle {
    color: rgba(255,255,255,.9);
    font-weight: 500;
    letter-spacing: .2px;
    margin-top: 6px;
}

.auth-card .card-body {
    background: #fff;
}

.auth-card .form-control {
    border-radius: 10px;
}

.auth-card .input-group-text {
    background: #f1f5ff;
    border: none;
}

.auth-card .btn-primary {
    border-radius: 10px;
}

.auth-logo-img {
    height: 44px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

.brand-logo-img {
    height: 40px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 1040;
    background: #ffffff;
    border-bottom: 1px solid #eaecef;
    box-shadow: 0 6px 18px rgba(2, 6, 23, .06);
}

.app-header-dark {
    background: linear-gradient(180deg, #1f2937, #111827);
    border-bottom-color: rgba(255,255,255,.08);
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.app-header .container, .app-header .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.app-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: .3px;
    color: #111827;
    text-decoration: none;
}

.app-header-dark .app-brand {
    color: #fff;
}

.app-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.app-nav .nav-link {
    padding: 8px 12px;
    border-radius: 10px;
    color: #334155;
    font-weight: 600;
}

.app-header-dark .app-nav .nav-link {
    color: rgba(255,255,255,.9);
}

.app-nav .nav-link:hover {
    background: rgba(29,78,216,.08);
    color: #1d4ed8;
}

.app-header-dark .app-nav .nav-link:hover {
    background: rgba(255,255,255,.1);
    color: #fff;
}

.app-user {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.avatar-initial {
    width: 28px;
    height: 28px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(180deg, #2563eb, #1d4ed8);
    font-size: .8rem;
}

.notif-btn {
    position: relative;
}

.notif-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
}

@media (max-width: 576px) {
    .brand-logo-img { height: 32px; }
    .app-header .container, .app-header .container-fluid { padding-top: 8px; padding-bottom: 8px; }
}
