/* ============================================================
   CSS — Diretório Para IPTV
   Layout de diretório editorial com tema escuro
   ============================================================ */

:root {
    --bg: #0a0a0f;
    --bg-secondary: #0f0f1a;
    --bg-card: #1a1a2e;
    --text: #ffffff;
    --text-muted: #b8b8d1;
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --accent-light: #818cf8;
    --success: #10b981;
    --warning: #f59e0b;
    --border: #2d2d44;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    --radius: 12px;
    --radius-lg: 16px;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #10b981 100%);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    text-align: center;
    margin-bottom: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h3 {
    font-size: 1.25rem;
    color: var(--text);
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover { color: var(--accent-light); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
}

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

.logo a { display: inline-block; }

.logo img {
    height: 45px;
    width: auto;
}

.nav-desktop {
    display: none;
    gap: 2rem;
}

.nav-desktop a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-desktop a:hover { color: var(--accent-light); }

@media (min-width: 768px) {
    .nav-desktop { display: flex; }
    .menu-toggle { display: none; }
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-mobile {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
}

.nav-mobile.active { display: flex; }

.nav-mobile a {
    color: var(--text);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

/* ============================================================
   HERO SECTION — Diretório (duas colunas)
   ============================================================ */
.hero-diretorio {
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
    padding: 100px 24px 48px;
}

.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.hero-left { flex: 1; }

.hero-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-light);
    margin-bottom: 12px;
    font-weight: 500;
}

.hero-left h1 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    line-height: 1.25;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #818cf8 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0;
}

.hero-right { flex-shrink: 0; }

.hero-card-destaque {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    min-width: 260px;
    max-width: 300px;
    box-shadow: 0 4px 24px rgba(99, 102, 241, 0.15);
}

.hero-badge {
    display: inline-block;
    background: var(--warning);
    color: #1a1a2e;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-card-nome {
    font-weight: 600;
    color: var(--text);
    margin: 10px 0 16px;
    font-size: 1.1rem;
}

.hero-card-destaque img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.btn-hero-cta {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s, transform 0.2s;
}

.btn-hero-cta:hover {
    background: var(--accent-hover);
    color: #fff;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .hero-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .hero-diretorio { padding-top: 80px; }
    .hero-card-destaque { min-width: auto; max-width: 100%; }
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
    background: var(--bg-secondary);
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.breadcrumb-list li:not(:last-child)::after {
    content: '›';
    margin-left: 8px;
    color: var(--border);
}

.breadcrumb-list a { color: var(--accent-light); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
    padding: 5rem 0;
}

/* ============================================================
   DIRECTORY CARDS
   ============================================================ */
.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.directory-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.directory-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
}

.directory-card.card-destaque {
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.2);
}

.card-badge {
    display: inline-block;
    background: var(--warning);
    color: #1a1a2e;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-content h3 {
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-content p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.card-rating {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.card-rating .stars { color: #fbbf24; margin-right: 6px; }

.card-features {
    list-style: none;
    margin-bottom: 1.25rem;
}

.card-features li {
    padding: 4px 0 4px 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
    position: relative;
}

.card-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
    font-size: 0.8rem;
}

/* Card Buttons — visual idêntico */
.btn-card {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    background: var(--accent);
    color: #fff;
    border: none;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    cursor: pointer;
    font-family: inherit;
}

.btn-card:hover {
    background: var(--accent-hover);
    color: #fff;
    transform: translateY(-1px);
}

.btn-card-ativo { background: var(--accent); }
.btn-card-inativo { background: var(--accent); }

/* ============================================================
   TABS — Avaliações e FAQ
   ============================================================ */
.reviews-tabs,
.faq-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 2rem;
}

.tab-btn,
.faq-tab-btn {
    background: var(--bg-card);
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: inherit;
    transition: all 0.2s ease;
}

.tab-btn:hover,
.faq-tab-btn:hover {
    color: var(--text);
    border-color: var(--accent);
}

.tab-btn.tab-ativo,
.faq-tab-btn.faq-tab-ativo {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ============================================================
   REVIEW CARDS
   ============================================================ */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.reviewer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.reviewer-info span[itemprop="name"] {
    color: var(--text);
    font-weight: 600;
}

.reviewer-info time {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.review-rating {
    color: #fbbf24;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.review-body {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

.reviews-footer,
.faq-footer {
    text-align: center;
    margin-top: 2rem;
}

.btn-ver-todos {
    background: transparent;
    color: var(--accent-light);
    border: 1px solid var(--accent);
    padding: 10px 28px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: inherit;
    transition: all 0.2s ease;
}

.btn-ver-todos:hover {
    background: var(--accent);
    color: #fff;
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-group { margin-bottom: 1rem; }

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.75rem;
}

.faq-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.75rem;
    background: none;
    -webkit-text-fill-color: var(--text);
}

.faq-item [itemprop="text"] {
    color: var(--text-muted);
}

.faq-item [itemprop="text"] p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

.faq-item [itemprop="text"] p:last-child {
    margin-bottom: 0;
}

/* ============================================================
   INSTITUCIONAL + FOOTER
   ============================================================ */
.institucional {
    background: var(--bg-secondary);
    text-align: center;
    padding: 4rem 0;
}

.institucional p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.7;
}

.site-footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-content { grid-template-columns: repeat(3, 1fr); }
}

.footer-section h3 {
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    background: none;
    -webkit-text-fill-color: var(--text);
}

.footer-section ul { list-style: none; }

.footer-section li { margin-bottom: 0.5rem; }

.footer-section a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-section a:hover { color: var(--accent-light); }

.footer-section p {
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .directory-grid {
        grid-template-columns: 1fr;
    }
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    .reviews-tabs,
    .faq-tabs {
        gap: 6px;
    }
    .tab-btn,
    .faq-tab-btn {
        font-size: 0.78rem;
        padding: 6px 12px;
    }
    .section { padding: 3rem 0; }
}

/* ============================================================
   ACCESSIBILITY & PERFORMANCE
   ============================================================ */
*:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}

img { content-visibility: auto; }
