:root {
    --atitude-orange: #ff4e00; /* Cor Principal */
    --atitude-dark: #121212;
    --atitude-gray: #f8f9fa;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* =========================================
   BASE & TYPOGRAPHY
   ========================================= */
body {
    font-family: var(--font-body);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .btn {
    font-family: var(--font-heading);
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.text-justify {
    text-align: justify;
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
    padding: 15px 0; /* Mais espaçamento inicial */
    transition: all 0.4s ease;
}

.navbar-brand img {
    /* Permite que o HTML controle a altura até 90px */
    max-height: 90px; 
    width: auto;
    transition: all 0.3s ease;
}

/* Estado quando a página é rolada (Adicionado via JS) */
.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.95); /* Fundo preto quase sólido */
    padding: 8px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.nav-link {
    color: #fff !important;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    margin-right: 1rem;
    text-transform: uppercase;
    position: relative;
}

.nav-link:hover {
    color: var(--atitude-orange) !important;
}

.small-arrow {
    font-size: 0.7em;
    vertical-align: middle;
}

/* Menu Mobile */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: rgba(0,0,0,0.95);
        padding: 20px;
        margin-top: 10px;
        border-radius: 10px;
    }
}

/* Dropdown */
.dropdown-menu {
    border: none;
    border-radius: 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: 15px;
    padding: 0;
}
.dropdown-item {
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}
.dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--atitude-orange);
    border-left-color: var(--atitude-orange);
}

/* =========================================
   HERO CAROUSEL (BANNER)
   ========================================= */
.hero-section {
    height: 100vh;
    min-height: 600px;
    position: relative;
    background-color: #000;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 6s ease; /* Efeito Zoom lento */
}

/* Zoom effect no slide ativo */
.carousel-item.active .hero-bg-img {
    transform: scale(1.1);
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
}

.leading-tight {
    line-height: 1.1;
}

/* Animações de Texto */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
.delay-3 { animation-delay: 0.9s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Setas do Carousel */
.carousel-control-prev, .carousel-control-next {
    width: 5%;
    opacity: 0; /* Esconde setas até passar o mouse */
    transition: opacity 0.3s;
}

.hero-section:hover .carousel-control-prev,
.hero-section:hover .carousel-control-next {
    opacity: 1;
}

.carousel-nav-icon {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.carousel-nav-icon:hover {
    background: var(--atitude-orange);
    border-color: var(--atitude-orange);
}

/* =========================================
   SEÇÃO HISTÓRIA
   ========================================= */
.history-img-wrapper {
    position: relative;
    padding: 10px;
}

.history-img {
    border-radius: 20px;
    transform: rotate(-3deg);
    transition: transform 0.3s ease;
}

.history-img-wrapper:hover .history-img {
    transform: rotate(0deg) scale(1.02);
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

.link-history {
    color: var(--atitude-orange);
    position: relative;
    padding-bottom: 5px;
}

.link-history::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--atitude-orange);
    transition: width 0.3s;
}

.link-history:hover::after {
    width: 100%;
}

/* =========================================
   SEÇÃO YOUTUBE / LIVES
   ========================================= */
.youtube-card {
    transition: transform 0.3s ease;
}

.youtube-card:hover {
    transform: translateY(-8px);
}

.youtube-thumb {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background-color: #000;
}

.youtube-thumb img {
    transition: transform 0.4s ease;
    opacity: 0.9;
}

.youtube-card:hover .youtube-thumb img {
    transform: scale(1.05);
    opacity: 0.6;
}

/* Botão Play Overlay */
.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 60px;
    height: 60px;
    background-color: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--atitude-orange);
    font-size: 1.5rem;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}

.youtube-card:hover .play-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.play-overlay:hover {
    background-color: var(--atitude-orange);
    color: #fff;
}

/* Badge Destaque */
.badge-destaque {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--atitude-orange);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 5;
    text-transform: uppercase;
}

.youtube-title {
    font-size: 1rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =========================================
   UTILITÁRIOS & COMPONENTES
   ========================================= */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

.bg-theme-orange {
    background-color: var(--atitude-orange) !important;
}

.text-warning {
    color: var(--atitude-orange) !important;
}

.btn-warning {
    background-color: var(--atitude-orange);
    border-color: var(--atitude-orange);
    color: #fff;
}

.btn-warning:hover {
    background-color: #e64600;
    border-color: #e64600;
    color: #fff;
}

.hover-warning:hover {
    color: var(--atitude-orange) !important;
}

/* Gradiente Transparente (usado em Historia.php) */
.bg-gradient-dark-transparent {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
}

.bg-gradient-dark {
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 100%);
}

/* =========================================
   DARK MODE
   ========================================= */
[data-bs-theme="dark"] body {
    background-color: var(--atitude-dark);
    color: #f8f9fa;
}

[data-bs-theme="dark"] .bg-white,
[data-bs-theme="dark"] .bg-light,
[data-bs-theme="dark"] .bg-body-tertiary {
    background-color: #1e1e1e !important;
    color: #e0e0e0;
}

[data-bs-theme="dark"] .card {
    background-color: #252525;
    border-color: #333;
}

[data-bs-theme="dark"] .text-muted {
    color: #adb5bd !important;
}

[data-bs-theme="dark"] .text-secondary {
    color: #9e9e9e !important;
}

/* Botão Toggle */
.btn-theme-toggle {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.btn-theme-toggle:hover {
    background: rgba(255,255,255,0.1);
    color: var(--atitude-orange);
}
