/* ==========================================================================
   Design System & Estilos Globais - Gadjo (A Tecnologia Simplificada)
   ========================================================================== */

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

/* Variáveis do CSS (Design Tokens) */
:root {
    /* Paleta de Cores */
    --bg-primary: #05080e;       /* Fundo da página (Escuro Tecnológico) */
    --bg-secondary: #0c101b;     /* Fundo de seções/cards (Azul Escuro/Preto Profundo) */
    --bg-glass: rgba(12, 16, 27, 0.75); /* Efeito vidro */
    --border-color: rgba(15, 155, 78, 0.18); /* Bordas com toque de Verde */
    
    --text-primary: #f8fafc;     /* Texto principal (Branco Gelo) */
    --text-secondary: #94a3b8;   /* Texto secundário (Cinza Azulado) */
    --text-muted: #64748b;       /* Texto desbotado */
    
    --color-primary: #05080e;    /* Preto Gadjo */
    --color-accent-green: #0f9b4e; /* Verde Gadjo Oficial */
    --color-accent-glow: #00ff66; /* Verde Neon / Destaque principal */
    --color-success: #10b981;    /* Verde para sucesso */
    
    /* Gradientes */
    --gradient-green: linear-gradient(135deg, #0f9b4e 0%, #05080e 100%);
    --gradient-glow: linear-gradient(90deg, #0f9b4e, #00ff66);
    --gradient-dark: linear-gradient(180deg, #05080e 0%, #0c101b 100%);
    
    /* Fontes */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transições & Sombras */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
    --shadow-green-glow: 0 0 20px rgba(0, 255, 102, 0.2);
    
    /* Espaçamentos e Bordas */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 9999px;
}

/* Reset Básico */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    background-image: radial-gradient(circle at 10% 20%, rgba(15, 155, 78, 0.06) 0%, transparent 40%),
                      radial-gradient(circle at 90% 80%, rgba(0, 255, 102, 0.03) 0%, transparent 50%);
    background-attachment: fixed;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

/* Layout - Grid de Containers */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   Header / Navegação
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(9, 13, 22, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    transition: var(--transition-smooth);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    display: flex;
    flex-direction: column;
}

.logo-text span.slogan {
    font-size: 0.75rem;
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text-secondary);
    -webkit-text-fill-color: var(--text-secondary);
    margin-top: -2px;
}

/* Menu de Navegação */
.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 28px;
}

.nav-links a {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-secondary);
    position: relative;
    padding: 6px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-glow);
    transition: var(--transition-smooth);
}

.nav-links a:hover,
.nav-links li.active a {
    color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links li.active a::after {
    width: 100%;
}

/* Redes Sociais no Header */
.social-icons-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.social-btn:hover {
    color: var(--text-primary);
    border-color: var(--color-accent-green);
    box-shadow: var(--shadow-green-glow);
    transform: translateY(-2px);
}

/* Menu Hamburger (Mobile) */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 2.5px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* ==========================================================================
   Hero Section / Home
   ========================================================================== */
.hero-section {
    padding: 80px 0 100px;
    text-align: center;
    position: relative;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(15, 155, 78, 0.15) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    background-color: rgba(15, 155, 78, 0.1);
    border: 1px solid rgba(15, 155, 78, 0.2);
    color: var(--color-accent-green);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
    background: linear-gradient(to right, #ffffff, #0f9b4e, #00ff66);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 36px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    gap: 10px;
}

.btn-primary {
    background: var(--gradient-green);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(15, 155, 78, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(15, 155, 78, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    border-color: var(--color-accent-green);
    background-color: rgba(15, 155, 78, 0.05);
    transform: translateY(-2px);
}

.btn-cta {
    background: linear-gradient(135deg, #00ff66 0%, #0f9b4e 100%);
    color: #05080e;
    box-shadow: 0 4px 15px rgba(0, 255, 102, 0.25);
}

.btn-cta:hover {
    box-shadow: 0 6px 20px rgba(0, 255, 102, 0.45);
    transform: translateY(-2px);
}

/* ==========================================================================
   Seção de Conteúdo e Grids (Home & Blog)
   ========================================================================== */
.section-title-wrap {
    margin-bottom: 40px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.section-label {
    font-size: 0.9rem;
    color: var(--color-accent-green);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 6px;
    display: block;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
}

/* Grid de Artigos */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

/* Card de Artigo Premium */
.card-article {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.card-article:hover {
    border-color: rgba(15, 155, 78, 0.4);
    box-shadow: var(--shadow-premium), var(--shadow-green-glow);
    transform: translateY(-6px);
}

.article-thumb {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.card-article:hover .article-thumb img {
    transform: scale(1.05);
}

.article-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--gradient-green);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
}

.article-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 16px;
    flex-grow: 1;
}

.article-title a:hover {
    color: var(--color-accent-green);
}

.article-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-accent-green);
    margin-top: auto;
}

.article-link:hover {
    color: var(--color-accent-glow);
}

/* ==========================================================================
   Página do Blog (Filtros & Busca)
   ========================================================================== */
.blog-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
    background-color: rgba(19, 27, 46, 0.4);
    border: 1px solid var(--border-color);
    padding: 16px 24px;
    border-radius: var(--radius-md);
}

.search-box {
    position: relative;
    max-width: 350px;
    width: 100%;
}

.search-box input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    transition: var(--transition-smooth);
}

.search-box input:focus {
    outline: none;
    border-color: var(--color-accent-green);
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.15);
}

.search-box svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 18px;
    height: 18px;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
}

.filter-tag {
    padding: 8px 16px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-tag:hover,
.filter-tag.active {
    background: var(--gradient-green);
    border-color: var(--color-accent-green);
    color: #ffffff;
    box-shadow: var(--shadow-green-glow);
}

/* ==========================================================================
   Página de Vídeos (Galeria YouTube)
   ========================================================================== */
.videos-intro {
    text-align: center;
    max-width: 700px;
    margin: 40px auto 60px;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

@media (max-width: 576px) {
    .videos-grid {
        grid-template-columns: 1fr;
    }
}

.video-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
}

.video-card:hover {
    border-color: var(--color-accent-green);
    transform: translateY(-4px);
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Proporção 16:9 */
    height: 0;
    background-color: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-info {
    padding: 20px;
}

.video-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

/* ==========================================================================
   Página de Ofertas (Iframe do App do Usuário)
   ========================================================================== */
.offers-section {
    padding: 40px 0 60px;
}

.iframe-wrapper {
    position: relative;
    width: 100%;
    height: 900px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-premium), var(--shadow-purple-glow);
    background-color: var(--bg-secondary);
}

.iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
}

/* ==========================================================================
   Página de Política de Privacidade
   ========================================================================== */
.privacy-container {
    max-width: 800px;
    margin: 60px auto 80px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-premium);
}

.privacy-container h1 {
    font-size: 2.25rem;
    margin-bottom: 24px;
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.privacy-container h2 {
    font-size: 1.5rem;
    margin: 32px 0 16px;
    color: var(--text-primary);
}

.privacy-container p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.7;
}

.privacy-container ul {
    list-style-type: disc;
    padding-left: 24px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.privacy-container li {
    margin-bottom: 8px;
}

/* ==========================================================================
   Rodapé / Footer
   ========================================================================== */
.site-footer {
    background-color: #05080e;
    border-top: 1px solid var(--border-color);
    padding: 80px 0 30px;
    margin-top: auto;
}

/* Newsletter */
.newsletter-section {
    background: radial-gradient(circle at top right, rgba(193, 15, 255, 0.08), transparent 60%),
                rgba(19, 27, 46, 0.5);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 40px;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.newsletter-text {
    max-width: 500px;
}

.newsletter-title {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.newsletter-desc {
    color: var(--text-secondary);
}

.newsletter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 500px;
    width: 100%;
}

.newsletter-form input {
    flex-grow: 1;
    min-width: 200px;
    padding: 14px 20px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--color-accent-green);
}

.newsletter-form .btn {
    padding: 14px 32px;
}

.newsletter-message {
    font-size: 0.9rem;
    margin-top: 8px;
    display: none;
}

.newsletter-message.success {
    color: var(--color-success);
    display: block;
}

/* Links do Rodapé */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-info-col p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 16px 0 24px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-col-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--color-accent-green);
    padding-left: 4px;
}

/* Direitos Autorais */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-developer a {
    color: var(--text-secondary);
    font-weight: 500;
}

.footer-developer a:hover {
    color: var(--color-accent-green);
}

/* ==========================================================================
   Design Responsivo (Mobile & Tablets)
   ========================================================================== */
@media (max-width: 991px) {
    /* Header Mobile */
    .menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 73px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 73px);
        background-color: var(--bg-primary);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 40px;
        padding: 50px 24px;
        transition: 0.4s cubic-bezier(0.1, 0.9, 0.2, 1);
        border-top: 1px solid var(--border-color);
        z-index: 999;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }
    
    .nav-links a {
        font-size: 1.3rem;
    }
    
    /* Toggle active animation */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* Newsletter */
    .newsletter-section {
        flex-direction: column;
        text-align: center;
        align-items: stretch;
    }
    
    .newsletter-text {
        max-width: 100%;
    }
    
    .newsletter-form {
        max-width: 100%;
    }
    
    /* Hero */
    .hero-title {
        font-size: 2.75rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-section {
        padding: 60px 0 80px;
    }
    
    .section-title-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .privacy-container {
        padding: 24px;
    }
    
    .iframe-wrapper {
        height: 600px;
    }
}
