/* styles.css */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

:root {
    --primary: #d97706;
    --primary-dark: #92400e;
    --secondary: #dc2626;
    --accent-blue: #0ea5e9;
    --bg-primary: #000000;
    --bg-secondary: #0f0f0f;
    --bg-tertiary: #1a1a1a;
    --border: #1f2937;
    --text-primary: #ffffff;
    --text-secondary: #d1d5db;
    --text-tertiary: #9ca3af;
    --text-quaternary: #6b7280;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    letter-spacing: 0.3px;
}

/* SCROLLBAR CUSTOMIZADO */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

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

/* ANIMAÇÕES GLOBAIS */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(217, 119, 6, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(217, 119, 6, 0.5);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out forwards;
}

.pulse-glow {
    animation: glowPulse 2s ease-in-out infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* LOADING SCREEN */
#loadingScreen {
    backdrop-filter: blur(10px);
}

#loadingScreen.hidden {
    animation: fadeIn 0.5s ease-out reverse;
    pointer-events: none;
}

/* SIDEBAR PREMIUM */
.sidebar-premium {
    position: relative;
    z-index: 40;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.5);
}

.sidebar-premium::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(217, 119, 6, 0.3), 
        transparent, 
        rgba(217, 119, 6, 0.1));
}

/* NAVEGAÇÃO */
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin: 0 8px;
    border-radius: 8px;
    color: var(--text-tertiary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 14px;
    font-weight: 500;
}

.nav-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-item:hover {
    color: var(--text-primary);
    background: rgba(217, 119, 6, 0.1);
}

.nav-item:hover::before {
    opacity: 1;
}

.nav-item.active {
    color: var(--primary);
    background: rgba(217, 119, 6, 0.15);
    border-left: 3px solid var(--primary);
    padding-left: 13px;
}

.nav-item .icon {
    font-size: 16px;
    opacity: 0.8;
}

.nav-item.active .icon {
    opacity: 1;
}

/* CARDS PREMIUM */
.card-premium {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.4), rgba(17, 24, 39, 0.2));
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(217, 119, 6, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: 0;
}

.card-premium > * {
    position: relative;
    z-index: 1;
}

.card-premium:hover {
    border-color: rgba(217, 119, 6, 0.3);
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.6), rgba(17, 24, 39, 0.4));
    box-shadow: 0 10px 40px rgba(217, 119, 6, 0.1);
    transform: translateY(-4px);
}

.card-premium:hover::before {
    left: 100%;
}

/* PROTOCOL CARD */
.protocol-card {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.4), rgba(17, 24, 39, 0.2));
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    animation: fadeIn 0.6s ease-out forwards;
}

.protocol-card:hover {
    border-color: rgba(217, 119, 6, 0.3);
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.6), rgba(17, 24, 39, 0.4));
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(217, 119, 6, 0.15);
}

.protocol-card:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* PROFILE CARD */
.profile-card {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.4), rgba(17, 24, 39, 0.2));
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-card:hover {
    border-color: rgba(220, 38, 38, 0.3);
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.6), rgba(17, 24, 39, 0.4));
    box-shadow: 0 15px 40px rgba(220, 38, 38, 0.1);
    transform: translateY(-4px);
}

.profile-card:hover::before {
    opacity: 1;
}

/* LEVEL CARD */
.level-card {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.3), rgba(17, 24, 39, 0.1));
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.level-card.active {
    border-color: rgba(217, 119, 6, 0.4);
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.1), rgba(217, 119, 6, 0.05));
    box-shadow: 0 0 20px rgba(217, 119, 6, 0.15);
}

.level-card:hover {
    border-color: rgba(217, 119, 6, 0.3);
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.5), rgba(17, 24, 39, 0.3));
}

/* BOTÕES */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), #b45309);
    color: #000;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    box-shadow: 0 8px 24px rgba(217, 119, 6, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.4s ease;
    z-index: 0;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(217, 119, 6, 0.4);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    padding: 12px 24px;
    border: 1px solid var(--primary);
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-secondary:hover {
    background: rgba(217, 119, 6, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(217, 119, 6, 0.2);
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* SEÇÕES */
.section-content {
    display: none;
    animation: fadeIn 0.6s ease-out;
}

.section-content.active {
    display: block;
}

/* NOTIFICAÇÕES */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(217, 119, 6, 0.9);
    color: #000;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    z-index: 100;
    animation: slideDown 0.4s ease-out;
    backdrop-filter: blur(10px);
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 50;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.9), rgba(17, 24, 39, 0.8));
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y-auto;
    animation: slideInLeft 0.4s ease-out;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-tertiary);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-primary);
}

/* TIPOGRAFIA */
h1, h2, h3, h4, h5, h6 {
    font-weight: 300;
    letter-spacing: 0.5px;
}

h2 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h3 {
    font-size: 1.5rem;
}

p {
    color: var(--text-secondary);
}

.text-gray-300 {
    color: #d1d5db;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-gray-500 {
    color: #6b7280;
}

.text-gray-600 {
    color: #4b5563;
}

.text-amber-600 {
    color: var(--primary);
}

.text-red-600 {
    color: var(--secondary);
}

/* UTILITÁRIOS */
.backdrop-blur {
    backdrop-filter: blur(10px);
}

.border-gray-800 {
    border-color: var(--border);
}

.bg-gray-950 {
    background-color: #030712;
}

.bg-black {
    background-color: var(--bg-primary);
}

.rounded-lg {
    border-radius: 8px;
}

.rounded-full {
    border-radius: 9999px;
}

.tracking-widest {
    letter-spacing: 0.1em;
}

.tracking-tight {
    letter-spacing: -0.02em;
}

.uppercase {
    text-transform: uppercase;
}

.italic {
    font-style: italic;
}

.blur-3xl {
    filter: blur(64px);
}

.opacity-10 {
    opacity: 0.1;
}

.opacity-20 {
    opacity: 0.2;
}

.opacity-30 {
    opacity: 0.3;
}

/* GRADIENTES */
.bg-gradient-to-b {
    background-image: linear-gradient(to bottom, var(--tw-gradient-stops));
}

.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.from-gray-950 {
    --tw-gradient-from: #030712;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(3, 7, 18, 0));
}

.via-black {
    --tw-gradient-stops: var(--tw-gradient-from), #000000, var(--tw-gradient-to, rgba(0, 0, 0, 0));
}

.to-black {
    --tw-gradient-to: #000000;
}

.from-amber-600 {
    --tw-gradient-from: var(--primary);
}

.to-amber-500 {
    --tw-gradient-to: #f59e0b;
}

/* ESPAÇAMENTO */
.p-4 { padding: 16px; }
.p-6 { padding: 24px; }
.p-8 { padding: 32px; }
.px-3 { padding-left: 12px; padding-right: 12px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.px-6 { padding-left: 24px; padding-right: 24px; }
.py-1 { padding-top: 4px; padding-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }

/* DISPLAY */
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

.flex-col { flex-direction: column; }
.flex-1 { flex: 1 1 0%; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.w-2 { width: 8px; }
.w-5 { width: 20px; }
.w-12 { width: 48px; }
.w-16 { width: 64px; }
.w-96 { width: 384px; }
.w-full { width: 100%; }

.h-2 { height: 8px; }
.h-1 { height: 4px; }
.h-12 { height: 48px; }
.h-16 { height: 64px; }
.h-96 { height: 384px; }
.h-screen { height: 100vh; }
.h-full { height: 100%; }

.min-h-screen { min-height: 100vh; }
.max-w-2xl { max-width: 42rem; }
.max-w-7xl { max-width: 80rem; }

.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }
.overflow-x-hidden { overflow-x: hidden; }

.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.absolute { position: absolute; }
.relative { position: relative; }
.fixed { position: fixed; }

.z-10 { z-index: 10; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.text-left { text-align: left; }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

.border { border: 1px solid var(--border); }
.border-t { border-top: 1px solid var(--border); }
.border-b { border-bottom: 1px solid var(--border); }
.border-r { border-right: 1px solid var(--border); }
.border-l { border-left: 3px solid; }

.rounded { border-radius: 4px; }

.transition { transition: all 0.3s ease; }

.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

.space-y-1 > * + * { margin-top: 4px; }
.space-y-2 > * + * { margin-top: 8px; }
.space-y-3 > * + * { margin-top: 12px; }
.space-y-4 > * + * { margin-top: 16px; }
.space-y-6 > * + * { margin-top: 24px; }

.progress-bar {
    transition: width 0.5s ease;
}

/* RESPONSIVO */
@media (max-width: 1024px) {
    #sidebar {
        width: 56px;
    }

    #sidebar .nav-item span:not(.icon) {
        display: none;
    }

    #sidebar > div:first-child p {
        display: none;
    }

    .nav-item {
        justify-content: center;
        margin: 0 4px;
    }
}

@media (max-width: 768px) {
    .flex {
        flex-direction: column;
    }

    .grid {
        grid-template-columns: 1fr !important;
    }

    #sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: auto;
        border-right: none;
        border-top: 1px solid var(--border);
        flex-direction: row;
        overflow-x: auto;
        z-index: 40;
    }

    #sidebar nav {
        display: flex;
        overflow-x: auto;
        gap: 4px;
        flex: 1;
    }

    #sidebar > div:first-child {
        display: none;
    }

    #sidebar > div:last-child {
        display: none;
    }

    main {
        padding-bottom: 80px;
    }

    .nav-item span:not(.icon) {
        display: none;
    }

    .nav-item {
        justify-content: center;
        margin: 0 4px;
    }

    .text-5xl {
        font-size: 2rem;
    }

    .text-4xl {
        font-size: 1.875rem;
    }

    .text-2xl {
        font-size: 1.25rem;
    }

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

    .md\:grid-cols-2 {
        grid-template-columns: 1fr;
    }

    .md\:w-auto {
        width: 100%;
    }
}