/* F1 Race Brasil - Documentação Moderna */
/* Tema escuro com acentos em vermelho racing */

:root {
    --f1-red: #e10600;
    --f1-dark: #15151e;
    --f1-darker: #0a0a0f;
    --f1-gray: #38383f;
    --f1-light: #f1f1f1;
    --f1-gold: #ffd700;
    --f1-silver: #c0c0c0;
    --f1-bronze: #cd7f32;
    --accent-blue: #00d4ff;
    --accent-green: #00ff88;
    --text-muted: #a0a0a0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--f1-darker) 0%, var(--f1-dark) 100%);
    color: var(--f1-light);
    line-height: 1.6;
    min-height: 100vh;
}

/* Header */
.header {
    background: linear-gradient(90deg, var(--f1-red) 0%, #ff3333 100%);
    padding: 0.3rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(225, 6, 0, 0.3);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.2rem;
}

.logo {
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    white-space: nowrap;
    line-height: 1.2;
    flex-shrink: 0;
}

.logo span {
    color: var(--f1-gold);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Navigation */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.1rem;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: flex-end;
    overflow-x: auto;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.25rem 0.35rem;
    border-radius: 3px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.858rem;
    letter-spacing: 0.2px;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-menu a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* Main Container */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, rgba(225, 6, 0, 0.1) 0%, transparent 100%);
    border-radius: 15px;
    margin-bottom: 2rem;
    border: 1px solid rgba(225, 6, 0, 0.2);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.card {
    background: linear-gradient(145deg, var(--f1-gray) 0%, var(--f1-dark) 100%);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--f1-red) 0%, transparent 100%);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-color: var(--f1-red);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.card h3 {
    color: var(--f1-gold);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.card a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    transition: color 0.3s ease;
}

.card a:hover {
    color: var(--f1-red);
}

/* Content Sections */
.section {
    background: linear-gradient(145deg, var(--f1-gray) 0%, var(--f1-dark) 100%);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid rgba(255,255,255,0.1);
}

.section h2 {
    color: var(--f1-gold);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--f1-red);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section h3 {
    color: var(--accent-blue);
    font-size: 1.3rem;
    margin: 1.5rem 0 1rem;
}

.section p {
    margin-bottom: 1rem;
    text-align: justify;
}

/* Lists */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.feature-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--f1-red);
    font-weight: bold;
    font-size: 1.2rem;
}

.feature-list li:last-child {
    border-bottom: none;
}

/* Tips Box */
.tip-box {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 212, 255, 0.05) 100%);
    border-left: 4px solid var(--accent-blue);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.tip-box.warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 193, 7, 0.05) 100%);
    border-left-color: #ffc107;
}

.tip-box.danger {
    background: linear-gradient(135deg, rgba(225, 6, 0, 0.1) 0%, rgba(225, 6, 0, 0.05) 100%);
    border-left-color: var(--f1-red);
}

.tip-box.success {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(0, 255, 136, 0.05) 100%);
    border-left-color: var(--accent-green);
}

.tip-box h4 {
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.tip-box.warning h4 { color: #ffc107; }
.tip-box.danger h4 { color: var(--f1-red); }
.tip-box.success h4 { color: var(--accent-green); }

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.data-table th {
    background: var(--f1-red);
    color: white;
    padding: 1rem;
    text-align: left;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.data-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.data-table tr:hover {
    background: rgba(255,255,255,0.05);
}

/* Code/Formula blocks */
.formula-box {
    background: var(--f1-darker);
    border: 1px solid var(--f1-gray);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
}

.formula-box code {
    color: var(--accent-green);
    font-size: 0.95rem;
}

/* FAQ Accordion */
.faq-item {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 1rem;
}

.faq-question {
    background: none;
    border: none;
    color: var(--f1-light);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1rem 0;
    cursor: pointer;
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--f1-gold);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--f1-red);
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1rem;
}

.faq-answer.active {
    max-height: 500px;
    padding-bottom: 1rem;
}

/* Footer */
.footer {
    background: var(--f1-darker);
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 3px solid var(--f1-red);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--f1-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--f1-red);
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--accent-blue);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--f1-red);
}

/* Search Box */
.search-box {
    position: relative;
    margin-bottom: 2rem;
}

.search-box input {
    width: 100%;
    padding: 1rem 1.5rem;
    padding-left: 3rem;
    background: var(--f1-gray);
    border: 2px solid transparent;
    border-radius: 8px;
    color: var(--f1-light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--f1-red);
    background: var(--f1-dark);
}

.search-box::before {
    content: '🔍';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--f1-dark);
        flex-direction: column;
        padding: 1rem;
        align-items: center;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        text-align: center;
        width: 100%;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 1rem;
    }

    .section {
        padding: 1.5rem;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--f1-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--f1-red);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff3333;
}

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

.card, .section {
    animation: fadeIn 0.5s ease forwards;
}

/* Print styles */
@media print {
    .header, .footer, .nav-menu {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .section {
        break-inside: avoid;
    }
}
