/* ============================================================
   ADRI INDICA - STYLE.CSS
   Versão: Tailwind (Landing) + CSS puro (Admin)
   ============================================================ */

/* ============================================================
   1. VARIÁVEIS E RESET BASE
   ============================================================ */
:root {
    --preto-fundo: #0a0a0a;
    --preto-card: rgba(20, 20, 20, 0.7);
    --dourado: #D4AF37;
    --dourado-claro: #FFD700;
    --texto: #ffffff;
    --texto-secundario: #b3b3b3;
    --borda-dourada: rgba(212, 175, 55, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--preto-fundo);
    background-image: url('/images/marmore/black-gold-marble.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: var(--texto);
    min-height: 100vh;
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: var(--dourado);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ============================================================
   2. SCROLLBAR PERSONALIZADA
   ============================================================ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #D4AF37, #8B7327);
    border-radius: 10px;
}

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

/* ============================================================
   3. UTILITÁRIOS GLOBAIS
   ============================================================ */
.dourado {
    color: var(--dourado);
}

/* Efeito Vidro (Glassmorphism) — usado no Admin */
.glass-effect {
    background: var(--preto-card);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--borda-dourada);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

/* Botão Dourado (fallback para o Admin) */
.btn-dourado {
    background: linear-gradient(135deg, var(--dourado) 0%, var(--dourado-claro) 100%);
    color: #000;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}

.btn-dourado:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

/* ============================================================
   4. FILTROS (Landing — estado ativo é dinâmico pelo JS)
   ============================================================ */
.filtro-btn.active {
    background: linear-gradient(135deg, #D4AF37 0%, #FFD700 100%);
    color: #000;
    border-color: transparent;
    font-weight: 600;
}

/* ============================================================
   5. BOTÃO VOLTAR AO TOPO
   ============================================================ */
#btn-topo.visible {
    opacity: 1;
    visibility: visible;
}

/* ============================================================
   6. MODAL DE VÍDEO
   ============================================================ */
#modal-video {
    display: none;
}

#modal-video.active {
    display: flex;
}

/* ============================================================
   7. ANIMAÇÕES CUSTOMIZADAS
   ============================================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ============================================================
   8. TELA DE LOGIN (ADMIN)
   ============================================================ */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 40px;
    text-align: center;
}

.login-header i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.login-header h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.login-header p {
    color: var(--texto-secundario);
    margin-bottom: 30px;
    font-size: 0.9rem;
}

/* ============================================================
   9. INPUTS (Compartilhados — Admin)
   ============================================================ */
.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--texto-secundario);
}

.input-group label i {
    color: var(--dourado);
    margin-right: 5px;
}

.input-group input,
.input-group textarea,
.input-group select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--texto);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border 0.3s;
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--dourado);
}

.input-group select option {
    background: #111;
    color: #fff;
}

.input-group textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group label {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.erro-msg {
    color: #ff4d4d;
    margin-top: 15px;
    font-size: 0.9rem;
}

.sucesso-msg {
    color: #4dff88;
    margin-top: 15px;
    font-size: 0.9rem;
}

/* ============================================================
   10. DASHBOARD ADMIN
   ============================================================ */
.dashboard-page {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    border-radius: 0;
    border-right: 1px solid var(--borda-dourada);
    border-top: none;
    border-bottom: none;
    border-left: none;
    height: 100vh;
    position: sticky;
    top: 0;
    flex-shrink: 0;
}

.sidebar-brand {
    margin-bottom: 40px;
    text-align: center;
}

.sidebar-brand h2 {
    font-size: 1.5rem;
}

.sidebar-brand p {
    color: var(--texto-secundario);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

.sidebar nav a {
    color: var(--texto-secundario);
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.sidebar nav a:hover,
.sidebar nav a.active {
    background: rgba(212, 175, 55, 0.1);
    color: var(--dourado);
}

.btn-logout {
    background: transparent;
    border: 1px solid var(--borda-dourada);
    color: var(--texto-secundario);
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
}

.btn-logout:hover {
    background: rgba(255, 77, 77, 0.1);
    color: #ff4d4d;
    border-color: #ff4d4d;
}

.main-content {
    flex-grow: 1;
    padding: 40px;
    overflow-y: auto;
    height: 100vh;
}

.header-section {
    margin-bottom: 30px;
}

.header-section h1 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.header-section p {
    color: var(--texto-secundario);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.grid-parcerias {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.card-parceria {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: transform 0.3s, border-color 0.3s;
}

.card-parceria:hover {
    transform: translateY(-5px);
    border-color: var(--dourado);
}

.card-parceria img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

.card-parceria h3 {
    font-size: 1.2rem;
}

.card-parceria p {
    font-size: 0.9rem;
    color: var(--texto-secundario);
    flex-grow: 1;
}

.card-actions {
    display: flex;
    gap: 10px;
}

.btn-acao {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid var(--borda-dourada);
    background: transparent;
    color: var(--texto);
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s;
    flex: 1;
    font-family: 'Inter', sans-serif;
}

.btn-acao:hover {
    background: var(--dourado);
    color: #000;
}

.btn-acao.danger:hover {
    background: #ff4d4d;
    border-color: #ff4d4d;
    color: #fff;
}

.form-container {
    padding: 30px;
    max-width: 600px;
}

/* ============================================================
   11. RESPONSIVO (Admin + Ajustes gerais)
   ============================================================ */
@media (max-width: 768px) {
    /* Dashboard Admin */
    .dashboard-page {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--borda-dourada);
    }

    .main-content {
        height: auto;
        padding: 20px;
    }

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

    /* Botão Topo */
    #btn-topo {
        bottom: 20px !important;
        right: 20px !important;
        width: 45px !important;
        height: 45px !important;
    }
}

/* Ajuste para evitar bug do background-attachment em iOS */
@media (max-width: 1024px) {
    body {
        background-attachment: scroll;
    }
}