/**
 * JUDÔ360 - Estilos Globais
 * Arquivo CSS principal com variáveis e estilos base
 * VERSÃO CORRIGIDA - Z-index ajustado
 */

/* ===== VARIÁVEIS CSS ===== */
:root {
    /* Cores Principais */
    --color-primary: #1A2B4A;        /* Azul Marinho */
    --color-white: #FFFFFF;
    --color-gold: #D4AF37;           /* Dourado */
    --color-beige: #F5F1E8;          /* Bege/Creme */
    
    /* Cores dos Gokyos */
    --color-gokyo-1: #4CAF50;        /* Verde - Ik */
    --color-gokyo-2: #FF9800;        /* Laranja - Ni */
    --color-gokyo-3: #9C27B0;        /* Roxo - San */
    --color-gokyo-4: #F44336;        /* Vermelho - Yon */
    --color-gokyo-5: #2196F3;        /* Azul - Go */
    
    /* Cores de Suporte */
    --color-gray-light: #F5F5F5;
    --color-gray: #9E9E9E;
    --color-gray-dark: #424242;
    --color-black: #000000;
    
    /* Fontes */
    --font-title: 'Outfit', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    --font-japanese: 'Noto Sans JP', sans-serif;
    
    /* Tamanhos */
    --navbar-height: 80px;
}

/* ===== RESET E BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--color-gray-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: 700;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== NAVBAR TRANSPARENTE - Z-INDEX CORRIGIDO ===== */
.judo-navbar {
    background-color: transparent;
    padding: 1.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100; /* REDUZIDO de 1000 para 100 */
    transition: all 0.3s ease;
    pointer-events: none; /* Permite cliques passarem pela navbar */
}

/* Apenas os elementos clicáveis recebem pointer-events */
.judo-navbar .container-fluid,
.judo-navbar .navbar-brand,
.judo-navbar .hamburger-menu {
    pointer-events: auto;
}

.judo-navbar.scrolled {
    background-color: rgba(26, 43, 74, 0.95);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.logo-text {
    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-white);
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* ===== MENU HAMBÚRGUER ===== */
.hamburger-menu {
    width: 45px;
    height: 45px;
    background-color: transparent;
    border: 2px solid var(--color-gold);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hamburger-menu:hover {
    background-color: var(--color-gold);
    transform: scale(1.05);
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: var(--color-white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu:hover .hamburger-line {
    background-color: var(--color-primary);
}

/* ===== SIDEBAR MENU ===== */
.sidebar-menu {
    position: fixed;
    top: 0;
    right: -350px;
    width: 320px;
    height: 100vh;
    background: linear-gradient(135deg, var(--color-primary) 0%, #0d1829 100%);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    overflow-y: auto;
}

.sidebar-menu.active {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 1.5rem;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

.sidebar-header h3 {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-gold);
    margin: 0;
    letter-spacing: 2px;
}

.close-sidebar {
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-sidebar:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-gold);
    transform: rotate(90deg);
}

.sidebar-nav {
    list-style: none;
    padding: 2rem 0;
    margin: 0;
}

.sidebar-nav li {
    margin: 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem 1.5rem;
    color: var(--color-white);
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.sidebar-nav a:hover {
    background-color: rgba(212, 175, 55, 0.1);
    border-left-color: var(--color-gold);
    padding-left: 2rem;
}

.sidebar-nav a.active {
    background-color: rgba(212, 175, 55, 0.2);
    border-left-color: var(--color-gold);
    color: var(--color-gold);
}

.sidebar-nav i {
    font-size: 1.3rem;
    width: 25px;
}

.sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem;
    border-top: 2px solid rgba(212, 175, 55, 0.3);
}

.btn-login-sidebar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    width: 100%;
    padding: 1rem;
    background-color: var(--color-gold);
    color: var(--color-primary);
    border: none;
    border-radius: 30px;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.btn-login-sidebar:hover {
    background-color: #C19B2E;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
    color: var(--color-primary);
}

/* ===== SIDEBAR OVERLAY ===== */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== FOOTER ===== */
.judo-footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 3rem 0 1rem;
    margin-top: 5rem;
}

.footer-title {
    font-family: var(--font-title);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.footer-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-gold);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--color-gold);
    color: var(--color-primary);
    transform: translateY(-3px);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 2rem 0 1rem;
}

.footer-copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    padding: 1rem 0;
}

/* ===== BUTTONS ===== */
.btn-primary {
    background-color: var(--color-gold);
    border: none;
    color: var(--color-primary);
    font-family: var(--font-title);
    font-weight: 700;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background-color: #C19B2E;
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* ===== SECTIONS ===== */
.section-title {
    font-family: var(--font-title);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-gray);
    text-align: center;
    margin-bottom: 3rem;
}

/* ===== UTILITIES ===== */
.text-gold {
    color: var(--color-gold);
}

.bg-beige {
    background-color: var(--color-beige);
}

.bg-navy {
    background-color: var(--color-primary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .logo-text {
        font-size: 1.5rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.8rem 1rem;
        margin: 0.2rem 0;
    }
    
    .btn-login {
        margin-top: 1rem;
        width: 100%;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
}