/* =========================================
   MAPA DOS ROLEZINHOS - ESTILO PROFISSIONAL (V2.2)
   Atualizado: Fix Carrossel, Favoritos e Admin
   ========================================= */

/* Importa a fonte Poppins (Padrão Moderno) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    /* === Paleta de Cores (High Contrast & Neon) === */
    --bg-body: #10002B;       /* Roxo Ultra Escuro (Fundo Principal) */
    --bg-card: rgba(20, 0, 40, 0.95); /* Quase sólido para leitura perfeita mobile */
    --bg-glass: rgba(60, 9, 108, 0.6); 
    
    /* Cores de Marca */
    --primary: #7B2CBF;       /* Roxo Brand */
    --primary-hover: #9D4EDD; /* Roxo Claro para Hover */
    --neon-accent: #00F5D4;   /* Ciano Neon (Destaques/Ação) */
    --hot-pink: #F72585;      /* Rosa para detalhes secundários */
    
    /* Tipografia */
    --text-main: #FFFFFF;     /* Branco Puro */
    --text-muted: #e6e6e6;    /* Cinza Quase Branco (Melhorado para leitura) */
    
    /* UI Elements */
    --glass-border: 1px solid rgba(255, 255, 255, 0.15);
    --input-bg: #1E1E2E;      /* Fundo de Inputs (Sólido para contraste) */
    --radius-card: 16px;      /* Bordas arredondadas consistentes */
    --radius-btn: 50px;       /* Botões redondos */
}

/* === Reset & Base === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    /* Gradiente sutil de fundo fixo para profundidade */
    background-image: radial-gradient(circle at 50% 0%, #3c096c 0%, #10002B 70%);
    background-attachment: fixed;
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Força a cor do texto muted para ser legível */
.text-muted, .form-text, .small {
    color: var(--text-muted) !important;
    opacity: 0.95;
}

/* === Acessibilidade (Teclado) === */
:focus-visible {
    outline: 3px solid var(--neon-accent);
    outline-offset: 2px;
}

/* === Navbar (Glassmorphism Legível) === */
.navbar {
    background: rgba(16, 0, 43, 0.95) !important; /* Alta opacidade */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 0.8rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

/* Navbar Ativa */
.nav-link.active {
    color: var(--neon-accent) !important;
    font-weight: 700;
    border-bottom: 2px solid var(--neon-accent);
}

.logo-brand {
    height: 75px;
    width: auto;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.8));
    transition: transform 0.3s ease;
}

.navbar-brand:hover .logo-brand {
    transform: scale(1.05) rotate(-3deg);
    filter: brightness(1.2); 
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--neon-accent) !important;
    text-shadow: 0 0 10px rgba(0, 245, 212, 0.4);
}

/* === Hero Section (Impacto Visual) === */
.hero-section {
    position: relative;
    height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../../imgs/Hype1.webp') no-repeat center center/cover;
    border-radius: 0 0 2.5rem 2.5rem;
    overflow: hidden;
    margin-bottom: 4rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(16,0,43,0.3), rgba(16,0,43,1));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 900px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #fff 0%, var(--neon-accent) 100%);
    background-clip: text;          /* <--- Propriedade padrão adicionada */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #e0e0e0;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* === Botões (CTAs) === */
.btn-cta {
    background: var(--neon-accent);
    color: #10002B;
    padding: 16px 40px;
    border-radius: var(--radius-btn);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    box-shadow: 0 0 25px rgba(0, 245, 212, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    display: inline-block;
}

.btn-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 40px rgba(0, 245, 212, 0.6);
    color: #10002B;
    background: #fff;
}

/* === FIX: Carrossel de Destaques === */
.carousel-item {
    transition: transform 0.6s ease-in-out;
}

.carousel-caption-custom {
    /* FIX: Permite clicar através da legenda onde não tem conteúdo */
    pointer-events: none; 
    background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 4rem 2rem 2rem 2rem; /* Mais padding para afastar das setas */
    text-align: left;
    z-index: 10;
}

/* Reativa cliques nos textos e botões dentro da legenda */
.carousel-caption-custom > * {
    pointer-events: auto;
}

/* FIX: Diminui a área de clique das setas para não cobrir o botão central */
.carousel-control-prev, .carousel-control-next {
    width: 8%; 
    z-index: 20;
}

/* === Cards Profissionais (Consistência) === */
.card-role {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative; /* Necessário para posicionar o coração */
}

.card-role:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(0,0,0,0.6);
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    min-height: 200px; 
    overflow: hidden;
    background-color: #000;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card-role:hover .card-img-wrapper img {
    transform: scale(1.1);
}

.card-body-custom {
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-grow: 1;
    flex-direction: column;
}

.card-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    line-clamp: 2;          /* <--- Propriedade padrão adicionada */
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* === Botão Favorito (Coração no Card) === */
.btn-fav-card {
    position: absolute;
    top: 12px;
    right: 12px; /* Canto superior direito */
    z-index: 30;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #fff;
    padding: 0;
}

.btn-fav-card:hover {
    background: #fff;
    color: #dc3545;
    transform: scale(1.1);
}

.btn-fav-card.active {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

/* === Categorias (Pílulas) === */
.card-category {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    min-height: 80px;
}

.card-category:hover {
    background: var(--input-bg);
    border-color: var(--neon-accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 245, 212, 0.1);
}

.card-category h5 {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
}

.card-category:hover h5 {
    color: var(--neon-accent);
}

/* === Formulários e Inputs === */
.form-label {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    background-color: var(--input-bg) !important;
    border: 1px solid #444 !important;
    color: #fff !important;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    font-size: 1rem;
}

.form-control:focus, .form-select:focus {
    background-color: #252535 !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(123, 44, 191, 0.3) !important;
    outline: none;
}

.form-control::placeholder {
    color: #888;
}

/* === Página de Erro 404 === */
.error-container {
    padding: 4rem 1rem;
    text-align: center;
}
.error-code {
    font-size: 8rem;
    font-weight: 900;
    color: rgba(255,255,255,0.05);
    line-height: 1;
    margin-bottom: -2rem;
    pointer-events: none;
}

/* === Footer === */
footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    background: #0a001c !important;
}

footer p, footer span, footer div {
    color: #ffffff !important;
    opacity: 0.9;
}

footer a {
    color: #ffffff !important;
    opacity: 0.7;
    transition: opacity 0.3s;
}

footer a:hover {
    color: var(--neon-accent) !important;
    opacity: 1;
    text-decoration: underline !important;
}

/* === Responsividade Mobile === */
@media (max-width: 768px) {
    .hero-section {
        height: 400px;
        border-radius: 0 0 1.5rem 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-content {
        padding: 1rem;
    }

    .card-body-custom {
        padding: 1rem;
    }
    
    .logo-brand {
        height: 60px;
    }
    
    .carousel-caption-custom {
        padding: 1.5rem;
    }
    
    .carousel-caption-custom h2 {
        font-size: 1.5rem;
    }
}