/* URLement Brand System - Subtle Professional Colors */

:root {
    /* Brand Colors - Used sparingly for accents */
    /* Note: These are kept for backward compatibility, but new code should use design-tokens.css */
    --brand-primary: var(--color-brand-primary);
    --brand-primary-light: var(--color-brand-primary-light);
    --brand-secondary: var(--color-brand-secondary);
    --brand-success: var(--color-brand-success);
    --brand-warning: var(--color-brand-warning);
    --brand-info: var(--color-brand-info);

    /* Neutral Base - Main UI colors */
    /* Note: These are kept for backward compatibility, but new code should use design-tokens.css */
    --gray-50: var(--color-bg-muted);
    --gray-100: var(--color-bg-tertiary);
    --gray-200: var(--color-border);
    --gray-300: var(--color-border-alt);
    --gray-600: var(--color-text-secondary);
    --gray-900: var(--color-text-primary);

    /* Gradients - For special elements only */
    --gradient-brand: linear-gradient(135deg, var(--color-brand-primary) 0%, var(--color-brand-secondary) 100%);
    --gradient-subtle: linear-gradient(135deg, #F8F9FF 0%, #F5F3FF 100%);
}

/* Logo/Brand Name with gradient accent */
.brand-logo,
.nav-brand a {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: -0.03em;
}

/* Primary CTA Buttons - Branded */
.cta-button,
.nav-login,
.btn-primary {
    background: var(--brand-primary) !important;
    color: white !important;
    border: none;
    transition: all 0.3s ease;
}

.cta-button:hover,
.nav-login:hover,
.btn-primary:hover {
    background: var(--brand-primary-light) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

/* Icon Accents - Small pops of color */
.icon-accent {
    color: var(--brand-primary);
}

.icon-success {
    color: var(--brand-success);
}

.icon-warning {
    color: var(--brand-warning);
}

/* Score Indicators */
.score-high {
    color: var(--brand-success);
}

.score-medium {
    color: var(--brand-warning);
}

.score-low {
    color: var(--color-error);
}

/* Subtle Branded Borders */
.business-card {
    border-left: 3px solid var(--brand-primary);
}

.business-card.warning {
    border-left-color: var(--brand-warning);
}

.business-card.success {
    border-left-color: var(--brand-success);
}

/* Strategic Insights Section - Branded Gradient Background */
.strategic-insights {
    background: var(--gradient-subtle) !important;
    border-left: 4px solid var(--brand-primary) !important;
    padding: 2rem !important;
    border-radius: 12px !important;
    margin: 2rem 0 !important;
}

.strategic-insights h3 {
    color: var(--brand-primary) !important;
}

/* Section Headers with Brand Accent */
.results-section h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 32px;
    background: var(--brand-primary);
    margin-right: 16px;
    vertical-align: middle;
    border-radius: 2px;
}

/* Tags/Pills with Brand Colors */
.tag {
    background: var(--gray-100);
    color: var(--gray-900);
    border: 1px solid var(--gray-200);
}

.tag.primary {
    background: rgba(79, 70, 229, 0.1);
    color: var(--brand-primary);
    border-color: rgba(79, 70, 229, 0.2);
}

.tag.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--brand-success);
    border-color: rgba(16, 185, 129, 0.2);
}

/* Score Circle - Branded */
.score-circle {
    position: relative;
}

.score-circle .score-value {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Priority Actions - Color-coded */
.priority-high {
    border-left: 3px solid var(--brand-primary);
}

.priority-medium {
    border-left: 3px solid var(--brand-info);
}

.priority-low {
    border-left: 3px solid var(--gray-300);
}

/* Strategy Cards - Subtle Branded Backgrounds */
.strategy-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.strategy-card:hover {
    border-color: var(--brand-primary);
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.08);
}

.strategy-card.quick-wins {
    background: linear-gradient(135deg, #F0FDF4 0%, #ECFDF5 100%);
    border-left: 4px solid var(--brand-success);
}

.strategy-card.short-term {
    background: linear-gradient(135deg, #F8F9FF 0%, #EEF2FF 100%);
    border-left: 4px solid var(--brand-primary);
}

.strategy-card.long-term {
    background: linear-gradient(135deg, #FAF5FF 0%, #F5F3FF 100%);
    border-left: 4px solid var(--brand-secondary);
}

/* Keyword Opportunity Cards */
.keyword-opportunity {
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    border-left: 3px solid var(--gray-300);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.keyword-opportunity.high-opportunity {
    border-left-color: var(--brand-success);
    background: linear-gradient(to right, rgba(16, 185, 129, 0.03) 0%, white 100%);
}

.keyword-opportunity:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* SEO Recommendation Cards */
.seo-recommendation {
    background: white;
    padding: 1.75rem;
    border-radius: 10px;
    border-left: 4px solid var(--gray-300);
    margin-bottom: 1.5rem;
}

.seo-recommendation.priority-high {
    border-left-color: var(--brand-primary);
    background: linear-gradient(to right, rgba(79, 70, 229, 0.02) 0%, white 100%);
}

.seo-recommendation .category-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.category-badge.technical {
    background: rgba(79, 70, 229, 0.1);
    color: var(--brand-primary);
}

.category-badge.content {
    background: rgba(139, 92, 246, 0.1);
    color: var(--brand-secondary);
}

.category-badge.keywords {
    background: rgba(16, 185, 129, 0.1);
    color: var(--brand-success);
}

/* Metric Cards - Clean with Subtle Color */
.metric-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    text-align: center;
}

.metric-card .metric-value {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin: 1rem 0;
}

.metric-card.good .metric-value {
    color: var(--brand-success);
}

.metric-card.warning .metric-value {
    color: var(--brand-warning);
}

.metric-card.poor .metric-value {
    color: #EF4444;
}

/* Link Hover States - Branded */
a:not(.btn):not(.cta-button):hover {
    color: var(--brand-primary);
}

/* Footer Branding */
.footer-brand {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading States */
.loading-spinner {
    border: 3px solid var(--gray-200);
    border-top-color: var(--brand-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
}

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

/* Tooltips */
.tooltip {
    background: var(--gray-900);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
}

.tooltip::after {
    border-top-color: var(--gray-900);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge.new {
    background: rgba(79, 70, 229, 0.1);
    color: var(--brand-primary);
}

.badge.beta {
    background: rgba(139, 92, 246, 0.1);
    color: var(--brand-secondary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .results-section h2::before {
        display: none;
    }
}
