/* Copyright © 2025 Nícolas Ávila - All Rights Reserved */
/* Avx Documentation Styles */

:root {
    /* Light Theme - Avx Brand Colors */
    --primary-orange: #FF6B35;
    --secondary-yellow: #FFD23F;
    --background-light: #FFFFFF;
    --text-light: #2C3E50;
    --card-bg-light: #F8F9FA;
    --border-light: #E1E8ED;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --code-bg-light: #F5F5F5;

    /* Dark Theme - Avx Brand Colors */
    --background-dark: #1A1A2E;
    --space-gray: #16213E;
    --text-dark: #EAEAEA;
    --card-bg-dark: #0F3460;
    --border-dark: #2C3E50;
    --shadow-dark: rgba(0, 0, 0, 0.3);
    --code-bg-dark: #2C3E50;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Light Theme */
body.light-theme {
    background-color: var(--background-light);
    color: var(--text-light);
}

/* Dark Theme */
body.dark-theme {
    background-color: var(--background-dark);
    color: var(--text-dark);
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-yellow));
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.theme-toggle,
.lang-selector {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.theme-toggle:hover,
.lang-selector:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lang-selector {
    padding: 0.5rem;
}

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

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    border-radius: 16px;
    margin-bottom: 3rem;
}

.light-theme .hero {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 210, 63, 0.1));
}

.dark-theme .hero {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(255, 210, 63, 0.2));
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.3rem;
    opacity: 0.9;
}

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

.card {
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.light-theme .card {
    background: var(--card-bg-light);
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 6px var(--shadow-light);
}

.dark-theme .card {
    background: var(--card-bg-dark);
    border: 1px solid var(--border-dark);
    box-shadow: 0 4px 6px var(--shadow-dark);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px var(--shadow-light);
}

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

.card h3 {
    color: var(--primary-orange);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Code Blocks */
pre {
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.light-theme pre {
    background: var(--code-bg-light);
    border: 1px solid var(--border-light);
}

.dark-theme pre {
    background: var(--code-bg-dark);
    border: 1px solid var(--border-dark);
}

code {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.9rem;
}

/* Section */
.section {
    margin: 3rem 0;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-orange);
    border-bottom: 3px solid var(--primary-orange);
    padding-bottom: 0.5rem;
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    border-radius: 8px;
    overflow: hidden;
}

.light-theme table {
    border: 1px solid var(--border-light);
}

.dark-theme table {
    border: 1px solid var(--border-dark);
}

th,
td {
    padding: 1rem;
    text-align: left;
}

.light-theme th {
    background: var(--primary-orange);
    color: white;
}

.dark-theme th {
    background: var(--primary-orange);
    color: white;
}

.light-theme tr:nth-child(even) {
    background: var(--card-bg-light);
}

.dark-theme tr:nth-child(even) {
    background: var(--card-bg-dark);
}

/* Animation Container */
.animation-container {
    background: var(--card-bg-light);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.dark-theme .animation-container {
    background: var(--card-bg-dark);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    border-top: 2px solid var(--border-light);
}

.dark-theme footer {
    border-top-color: var(--border-dark);
}

/* Breadcrumb */
.breadcrumb {
    padding: 1rem 0;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--primary-orange);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

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

    .navbar-content {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Performance Chart */
.performance-chart {
    background: var(--card-bg-light);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.dark-theme .performance-chart {
    background: var(--card-bg-dark);
}

.chart-bar {
    display: flex;
    align-items: center;
    margin: 1rem 0;
    gap: 1rem;
}

.chart-label {
    min-width: 150px;
    font-weight: 600;
}

.chart-value {
    flex: 1;
    height: 30px;
    background: linear-gradient(90deg, var(--primary-orange), var(--secondary-yellow));
    border-radius: 4px;
    position: relative;
    animation: slideIn 1s ease-out;
}

@keyframes slideIn {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

.chart-number {
    margin-left: 1rem;
    font-weight: bold;
    color: var(--primary-orange);
}

/* Links */
a {
    color: var(--primary-orange);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

/* Button */
.btn {
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-yellow));
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: transform 0.3s ease;
    display: inline-block;
}

.btn:hover {
    transform: scale(1.05);
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    left: 0;
    top: 80px;
    width: 250px;
    height: calc(100vh - 80px);
    overflow-y: auto;
    padding: 2rem 1rem;
    border-right: 1px solid var(--border-light);
}

.dark-theme .sidebar {
    border-right-color: var(--border-dark);
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav li {
    margin: 0.5rem 0;
}

.sidebar-nav a {
    display: block;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.light-theme .sidebar-nav a:hover {
    background: var(--card-bg-light);
}

.dark-theme .sidebar-nav a:hover {
    background: var(--card-bg-dark);
}

.main-content {
    margin-left: 270px;
    padding: 2rem;
}

@media (max-width: 1024px) {
    .sidebar {
        display: none;
    }

    .main-content {
        margin-left: 0;
    }
}
