/* 
 * AI Agency - Brand Visibility Analysis System
 * Custom CSS styles inspired by SEranking's design
 */

:root {
    --primary: #0d6efd;
    --primary-light: #e6f0ff;
    --primary-dark: #0143a3;
    --secondary: #6c757d;
    --success: #198754;
    --info: #0dcaf0;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #212529;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
}

/* General styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--gray-800);
    background-color: #fbfbfd;
}

/* Typography enhancements */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

.text-primary {
    color: var(--primary) !important;
}

/* Navbar styling */
.navbar-dark.bg-primary {
    background-color: var(--primary) !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
}

.nav-link.active {
    font-weight: 600;
}

/* Card styling */
.card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
}

.card-header {
    background-color: rgba(13, 110, 253, 0.05);
    border-bottom: none;
}

/* Button styling */
.btn {
    font-weight: 500;
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-secondary:hover {
    background-color: var(--secondary);
}

.btn-lg {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
}

/* Form controls */
.form-control, .form-select {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border-color: var(--gray-300);
}

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

.form-control-lg, .form-select-lg {
    height: auto;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
}

.form-text {
    color: var(--gray-600);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Feature icons */
.feature-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

/* Card metrics on dashboard */
.metric-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-600);
}

/* Progress indicators */
.progress {
    height: 8px;
    border-radius: 4px;
    background-color: var(--gray-200);
    margin-bottom: 0.5rem;
}

.progress-bar {
    background-color: var(--primary);
    border-radius: 4px;
}

/* Visibility score indicator */
.score-indicator {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto;
}

.score-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(var(--primary) 0%, var(--primary) var(--score-percent, 50%), var(--gray-200) var(--score-percent, 50%), var(--gray-200) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.score-inner {
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.score-value {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.score-max {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* Task status spinner */
.status-spinner {
    width: 120px;
    height: 120px;
    border: 8px solid var(--gray-200);
    border-top: 8px solid var(--primary);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Report cards */
.report-card {
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.report-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.visibility-badge {
    font-size: 1rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 50px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .metric-value {
        font-size: 2rem;
    }
    
    .score-indicator {
        width: 150px;
        height: 150px;
    }
    
    .score-value {
        font-size: 2.25rem;
    }
}

/* Utility classes */
.shadow-hover {
    transition: box-shadow 0.2s;
}

.shadow-hover:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.border-hover {
    transition: border-color 0.2s;
}

.border-hover:hover {
    border-color: var(--primary) !important;
}

/* Data visualization colors */
.chart-primary {
    background-color: var(--primary);
}

.chart-secondary {
    background-color: var(--secondary);
}

.chart-success {
    background-color: var(--success);
}

.chart-info {
    background-color: var(--info);
}

.chart-warning {
    background-color: var(--warning);
}

.chart-danger {
    background-color: var(--danger);
}

/* Fix for Flask's now tag in base.html */
.footer-copyright {
    text-align: center;
    margin-bottom: 0;
}

/* Recommendations content formatting */
.recommendations-content p {
    margin-bottom: 1rem;
    white-space: pre-line;
}

.recommendations-content strong {
    font-weight: 600;
}

.recommendations-content ul, .recommendations-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.recommendations-content li {
    margin-bottom: 0.5rem;
} 