/* ===================================
   EXIGE - Sistema de Temas
   Baseado nas 3 logos: Vermelho, Azul, Verde
   =================================== */

/* ===================================
   Tema Padrão - Vermelho (Exige Vermelho)
   =================================== */
[data-theme="vermelho"],
:root {
    /* Primary Colors - Vermelho */
    --color-primary-50: #fef2f2;
    --color-primary-100: #fee2e2;
    --color-primary-200: #fecaca;
    --color-primary-300: #fca5a5;
    --color-primary-400: #f87171;
    --color-primary-500: #ef4444;
    --color-primary-600: #dc2626;
    --color-primary-700: #b91c1c;
    --color-primary-800: #991b1b;
    --color-primary-900: #7f1d1d;

    /* Secondary Colors */
    --color-secondary-500: #f97316;
    --color-secondary-600: #ea580c;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    --gradient-hero: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --gradient-dark: linear-gradient(135deg, #7f1d1d 0%, #450a0a 100%);
    
    /* Theme identifier */
    --theme-name: 'vermelho';
}

/* Logo gradient for Vermelho theme */
[data-theme="vermelho"] .gradient-start { stop-color: #ef4444; }
[data-theme="vermelho"] .gradient-end { stop-color: #f97316; }
.gradient-start { stop-color: #ef4444; }
.gradient-end { stop-color: #f97316; }

/* ===================================
   Tema Azul (Exige Azul)
   =================================== */
[data-theme="azul"] {
    /* Primary Colors - Azul */
    --color-primary-50: #eff6ff;
    --color-primary-100: #dbeafe;
    --color-primary-200: #bfdbfe;
    --color-primary-300: #93c5fd;
    --color-primary-400: #60a5fa;
    --color-primary-500: #3b82f6;
    --color-primary-600: #2563eb;
    --color-primary-700: #1d4ed8;
    --color-primary-800: #1e40af;
    --color-primary-900: #1e3a8a;

    /* Secondary Colors */
    --color-secondary-500: #06b6d4;
    --color-secondary-600: #0891b2;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    --gradient-hero: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --gradient-dark: linear-gradient(135deg, #1e3a8a 0%, #0c1929 100%);
    
    /* Theme identifier */
    --theme-name: 'azul';
}

/* Logo gradient for Azul theme */
[data-theme="azul"] .gradient-start { stop-color: #3b82f6; }
[data-theme="azul"] .gradient-end { stop-color: #06b6d4; }

/* ===================================
   Tema Verde (Exige Verde)
   =================================== */
[data-theme="verde"] {
    /* Primary Colors - Verde */
    --color-primary-50: #f0fdf4;
    --color-primary-100: #dcfce7;
    --color-primary-200: #bbf7d0;
    --color-primary-300: #86efac;
    --color-primary-400: #4ade80;
    --color-primary-500: #22c55e;
    --color-primary-600: #16a34a;
    --color-primary-700: #15803d;
    --color-primary-800: #166534;
    --color-primary-900: #14532d;

    /* Secondary Colors */
    --color-secondary-500: #10b981;
    --color-secondary-600: #059669;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #22c55e 0%, #10b981 100%);
    --gradient-hero: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    --gradient-dark: linear-gradient(135deg, #14532d 0%, #052e16 100%);
    
    /* Theme identifier */
    --theme-name: 'verde';
}

/* Logo gradient for Verde theme */
[data-theme="verde"] .gradient-start { stop-color: #22c55e; }
[data-theme="verde"] .gradient-end { stop-color: #10b981; }

/* ===================================
   Theme Switcher Component
   =================================== */
.theme-switcher {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.theme-toggle-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
}

.theme-toggle-btn svg {
    width: 28px;
    height: 28px;
    stroke: white;
    fill: none;
    stroke-width: 2;
}

.theme-options {
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s ease;
}

.theme-options.active {
    display: flex;
}

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

.theme-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    min-width: 180px;
}

.theme-option:hover {
    background: var(--color-gray-50);
}

.theme-option.active {
    border-color: var(--color-primary-500);
    background: var(--color-primary-50);
}

.theme-color {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}

.theme-option[data-theme="vermelho"] .theme-color {
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
}

.theme-option[data-theme="azul"] .theme-color {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
}

.theme-option[data-theme="verde"] .theme-color {
    background: linear-gradient(135deg, #22c55e 0%, #10b981 100%);
}

.theme-info {
    display: flex;
    flex-direction: column;
}

.theme-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-gray-900);
}

.theme-desc {
    font-size: 12px;
    color: var(--color-gray-500);
}

/* ===================================
   Improved Visual Elements
   =================================== */

/* Hero Image Professional Styling */
.hero-dashboard {
    position: relative;
    background: var(--gradient-primary);
    border-radius: 24px;
    padding: 8px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.hero-dashboard-inner {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.dashboard-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dashboard-dot.red { background: #ef4444; }
.dashboard-dot.yellow { background: #eab308; }
.dashboard-dot.green { background: #22c55e; }

.dashboard-title {
    flex: 1;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 500;
}

.dashboard-content {
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
}

.dashboard-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.dashboard-card-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-card-icon {
    width: 24px;
    height: 24px;
    opacity: 0.6;
}

.dashboard-card-value {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.dashboard-card-change {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}

.dashboard-card-change.positive {
    color: #22c55e;
}

.dashboard-card-change.negative {
    color: #ef4444;
}

.dashboard-chart {
    grid-column: span 2;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    height: 180px;
    display: flex;
    flex-direction: column;
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.chart-title {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.chart-legend {
    display: flex;
    gap: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.chart-bars {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding-top: 20px;
}

.chart-bar {
    flex: 1;
    background: var(--gradient-primary);
    border-radius: 6px 6px 0 0;
    min-height: 20px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.chart-bar:hover {
    opacity: 1;
    transform: scaleY(1.05);
    transform-origin: bottom;
}

/* Stats Section Professional */
.stats-professional {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    padding: 32px 0;
}

.stat-pro {
    text-align: center;
}

.stat-pro-number {
    font-size: 48px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-pro-label {
    font-size: 14px;
    color: var(--color-gray-500);
    margin-top: 4px;
}

.stat-divider-pro {
    width: 1px;
    height: 60px;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--color-gray-300),
        transparent
    );
}

/* Feature Cards Professional */
.feature-card-pro {
    position: relative;
    background: white;
    border-radius: 24px;
    padding: 32px;
    border: 1px solid var(--color-gray-200);
    overflow: hidden;
    transition: all 0.4s ease;
}

.feature-card-pro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card-pro:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-card-pro:hover::before {
    transform: scaleX(1);
}

.feature-icon-pro {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-50);
    border-radius: 16px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.feature-card-pro:hover .feature-icon-pro {
    background: var(--gradient-primary);
}

.feature-icon-pro svg {
    width: 32px;
    height: 32px;
    stroke: var(--color-primary-600);
    transition: all 0.3s ease;
}

.feature-card-pro:hover .feature-icon-pro svg {
    stroke: white;
}

/* Brands Section */
.brands-section {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.brands-header {
    text-align: center;
    margin-bottom: 40px;
}

.brands-header h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-gray-400);
}

.brands-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    opacity: 0.5;
}

.brand-logo {
    height: 32px;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.brand-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Testimonial Cards */
.testimonial-card {
    background: white;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
}

.testimonial-quote {
    font-size: 48px;
    color: var(--color-primary-200);
    position: absolute;
    top: 20px;
    left: 24px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-gray-700);
    margin-bottom: 24px;
    padding-top: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 20px;
}

.testimonial-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-gray-900);
}

.testimonial-info p {
    font-size: 14px;
    color: var(--color-gray-500);
}

/* ===================================
   Mobile Responsiveness for Menus
   =================================== */
@media (max-width: 1024px) {
    .mega-menu,
    .dropdown-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 70vh;
        overflow-y: auto;
        border-radius: 0;
        transform: none;
    }
    
    .mega-menu-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .theme-switcher {
        bottom: 16px;
        right: 16px;
    }
    
    .theme-toggle-btn {
        width: 48px;
        height: 48px;
    }
    
    .theme-options {
        right: 0;
        min-width: 160px;
    }
    
    .stats-professional {
        flex-direction: column;
        gap: 24px;
    }
    
    .stat-divider-pro {
        width: 60px;
        height: 1px;
    }
    
    .dashboard-content {
        grid-template-columns: 1fr;
    }
    
    .dashboard-chart {
        grid-column: span 1;
    }
}
