/* TRAFICOSOLOTEST.COM - Professional Styles */

/* ===== RESET AND BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background-color: #f8fafc;
}

/* ===== VARIABLES CSS ===== */
:root {
    /* Green Color Palette */
    --primary-green: #22c55e;
    --primary-green-dark: #16a34a;
    --primary-green-light: #4ade80;
    --secondary-green: #059669;
    --accent-green: #10b981;
    --light-green: #ecfdf5;
    --dark-green: #064e3b;
    
    /* Grays */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Roboto Slab', serif;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== HEADER ===== */
.header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 0.2rem;
}

.nav-brand .nav-subtitle {
    font-size: 0.9rem;
    color: var(--gray-600);
    font-weight: 500;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition-normal);
}

.nav-link:hover {
    color: var(--primary-green);
    background: var(--light-green);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-green);
    cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    color: white;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    font-weight: 300;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

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

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: var(--primary-green);
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    background: var(--gray-50);
}

/* ===== ANALYSIS OVERVIEW ===== */
.analysis-overview {
    padding: 6rem 0;
    background: white;
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.analysis-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: var(--transition-normal);
    border-top: 4px solid var(--primary-green);
}

.analysis-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: var(--light-green);
    color: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.analysis-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.analysis-card p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.key-stat {
    background: var(--primary-green);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ===== STATISTICS SECTION ===== */
.statistics-section {
    padding: 6rem 0;
    background: var(--gray-50);
}

.chart-container,
.laws-table-container {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-md);
}

.chart-header {
    margin-bottom: 2rem;
    text-align: center;
}

.chart-header h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.chart-wrapper {
    position: relative;
    height: 400px;
}

/* ===== LAWS TABLE ===== */
.table-responsive {
    overflow-x: auto;
}

.laws-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.laws-table th,
.laws-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.laws-table th {
    background: var(--light-green);
    color: var(--dark-green);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.laws-table tbody tr {
    transition: var(--transition-fast);
}

.laws-table tbody tr:hover {
    background: var(--gray-50);
}

.position {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: 700;
    color: white;
}

.position.gold {
    background: linear-gradient(135deg, #ffd700, #ffb347);
}

.position.silver {
    background: linear-gradient(135deg, #c0c0c0, #a8a8a8);
}

.position.bronze {
    background: linear-gradient(135deg, #cd7f32, #b8860b);
}

.laws-table .position:not(.gold):not(.silver):not(.bronze) {
    background: var(--gray-400);
}

.law-name {
    font-weight: 600;
    color: var(--gray-900);
}

.number-questions {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-green);
}

.percentage {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-green);
}

.priority-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.priority-badge.priority-max {
    background: #dc2626;
    color: white;
}

.priority-badge.priority-high {
    background: #ea580c;
    color: white;
}

.priority-badge.priority-medium {
    background: #ca8a04;
    color: white;
}

.priority-badge.priority-low {
    background: var(--gray-400);
    color: white;
}

/* Priority row styling */
.priority-max {
    background: rgba(220, 38, 38, 0.05);
}

.priority-high {
    background: rgba(234, 88, 12, 0.05);
}

.priority-medium {
    background: rgba(202, 138, 4, 0.05);
}

/* ===== STRATEGIES SECTION ===== */
.strategies-section {
    padding: 6rem 0;
    background: white;
}

.strategy-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.strategy-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-green);
    border-radius: 2px;
}

.timeline-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-marker {
    width: 60px;
    height: 60px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-right: 2rem;
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    flex: 1;
    border-left: 4px solid var(--primary-green);
}

.timeline-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.strategy-details h4 {
    color: var(--primary-green);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.strategy-details ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.strategy-details li {
    margin-bottom: 0.5rem;
    color: var(--gray-700);
}

.study-tips h5 {
    color: var(--gray-900);
    margin-bottom: 1rem;
    font-weight: 600;
}

.tip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.tip-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem;
    background: var(--light-green);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--dark-green);
}

.tip-item i {
    color: var(--primary-green);
}

.difficulty-alert {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    color: #92400e;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.subject-distribution {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.subject-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: var(--gray-50);
    border-radius: 8px;
    border-left: 4px solid var(--primary-green);
}

.subject-name {
    font-weight: 600;
    color: var(--gray-900);
}

.subject-percentage {
    font-weight: 700;
    color: var(--primary-green);
    font-size: 1.1rem;
}

/* ===== INSIGHTS ===== */
.insights-container {
    margin-top: 4rem;
}

.insights-header {
    text-align: center;
    margin-bottom: 2rem;
}

.insights-header h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.insight-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition-normal);
}

.insight-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.insight-icon {
    width: 60px;
    height: 60px;
    background: var(--light-green);
    color: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.insight-card h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.insight-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* ===== RESERVE ANALYSIS ===== */
.reserve-analysis {
    padding: 4rem 0;
    background: var(--light-green);
}

.reserve-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.reserve-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.reserve-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.reserve-percentage {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.reserve-category {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.reserve-details {
    font-size: 0.9rem;
    color: var(--gray-600);
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: 6rem 0;
    background: var(--gray-900);
    color: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.contact-methods {
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.contact-method i {
    color: var(--primary-green);
    width: 20px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--primary-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-normal);
}

.social-link:hover {
    background: var(--primary-green-light);
    transform: translateY(-2px);
}

/* ===== FORM STYLES ===== */
.form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.submit-btn {
    background: var(--primary-green);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-normal);
    width: 100%;
    justify-content: center;
}

.submit-btn:hover {
    background: var(--primary-green-dark);
    transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--gray-900);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    color: var(--primary-green);
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

.footer-brand p {
    opacity: 0.8;
    line-height: 1.6;
}

.footer-links h4 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-green);
}

.footer-legal h4 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-legal ul {
    list-style: none;
}

.footer-legal li {
    margin-bottom: 0.5rem;
}

.footer-legal a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition-fast);
}

.footer-legal a:hover {
    opacity: 1;
    color: var(--primary-green);
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 1rem;
    text-align: center;
    opacity: 0.7;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet Styles */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* Navigation */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        box-shadow: var(--shadow-lg);
        border-radius: 0 0 12px 12px;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-link {
        padding: 1rem 2rem;
        border-radius: 0;
        border-bottom: 1px solid var(--gray-200);
    }
    
    .menu-toggle {
        display: block;
    }
    
    /* Hero */
    .hero {
        padding: 4rem 0;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* Sections */
    .analysis-overview,
    .statistics-section,
    .strategies-section,
    .contact-section {
        padding: 4rem 0;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    /* Cards and Grids */
    .analysis-grid,
    .insights-grid,
    .reserve-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Timeline */
    .strategy-timeline::before {
        left: 15px;
    }
    
    .timeline-marker {
        width: 30px;
        height: 30px;
        font-size: 1rem;
        margin-right: 1rem;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    .tip-grid {
        grid-template-columns: 1fr;
    }
    
    .subject-distribution {
        grid-template-columns: 1fr;
    }
    
    /* Tables */
    .laws-table {
        font-size: 0.9rem;
    }
    
    .laws-table th,
    .laws-table td {
        padding: 0.8rem 0.5rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .chart-container,
    .laws-table-container {
        padding: 1rem;
    }
    
    .timeline-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .timeline-marker {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

/* ===== ELEMENTOR COMPATIBILITY ===== */

/* Elementor Widget Overrides */
.elementor-widget-container {
    max-width: 100%;
}

.elementor-section .container {
    max-width: 100%;
    padding: 0;
}

/* WordPress Content Area */
.wp-content {
    width: 100%;
    max-width: none;
}

/* Elementor Column Compatibility */
.elementor-column .analysis-card,
.elementor-column .insight-card,
.elementor-column .reserve-item {
    height: 100%;
}

/* Elementor Responsive Settings */
@media (max-width: 1024px) {
    .elementor-section.elementor-section-boxed > .elementor-container {
        max-width: 1024px;
    }
}

@media (max-width: 767px) {
    .elementor-section.elementor-section-boxed > .elementor-container {
        max-width: 767px;
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */

/* GPU Acceleration for Animations */
.analysis-card,
.insight-card,
.reserve-item,
.timeline-marker,
.cta-button,
.submit-btn,
.social-link {
    will-change: transform;
}

/* Smooth Scrolling Performance */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Print Styles */
@media print {
    .header,
    .contact-section,
    .footer {
        display: none;
    }
    
    .hero {
        background: none;
        color: black;
    }
    
    .analysis-card,
    .insight-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}