/*
Theme Name: TeleDir Pro - Diretório de Grupos
Theme URI: https://exemplo.com/teledir-pro
Author: Desenvolvedor WordPress
Description: Tema de diretório moderno em modo escuro para grupos e canais de mensagens, com envio pelo front-end, sistema de destaque pago e verificação de idade.
Version: 1.0.0
Text Domain: teledir
*/

:root {
    --bg-dark: #0f1115;
    --bg-card: #181b22;
    --bg-card-hover: #20242e;
    --primary: #2481cc;
    --primary-hover: #1d6ba8;
    --accent: #f59e0b;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --border: #2a2f3d;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* Header */
header {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.logo { font-size: 1.5rem; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 8px; }
.logo span { color: var(--primary); }
.nav-actions { display: flex; gap: 10px; align-items: center; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: 0.2s;
}
.btn-primary { background-color: var(--primary); color: #fff; }
.btn-primary:hover { background-color: var(--primary-hover); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-main); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-gold { background: linear-gradient(135deg, #f59e0b, #d97706); color: #000; font-weight: 700; }

/* Categories Bar */
.categories-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 16px 0;
    scrollbar-width: none;
}
.cat-pill {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: 0.2s;
}
.cat-pill:hover, .cat-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* Section Titles */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 28px 0 16px;
}
.section-title { font-size: 1.3rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.badge-vip {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent);
    border: 1px solid var(--accent);
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Grid & Cards */
.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.group-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, border-color 0.2s;
    position: relative;
}
.group-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    background: var(--bg-card-hover);
}
.group-card.featured {
    border: 1px solid var(--accent);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.1);
}
.card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.group-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    background: #2a2f3d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
    flex-shrink: 0;
}
.group-info h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; line-height: 1.2; }
.group-cat { font-size: 0.75rem; color: var(--text-muted); background: rgba(255,255,255,0.05); padding: 2px 8px; border-radius: 4px; }
.group-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-actions { display: flex; gap: 8px; }
.card-actions .btn { flex: 1; justify-content: center; padding: 8px 12px; font-size: 0.85rem; }

/* Forms & Modals */
.form-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    max-width: 600px;
    margin: 32px auto;
}
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 0.9rem; font-weight: 600; }
.form-control {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-dark);
    color: #fff;
    font-size: 0.95rem;
}
.form-control:focus { outline: none; border-color: var(--primary); }
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 0.9rem; }
.alert-success { background: rgba(16, 185, 129, 0.15); border: 1px solid #10b981; color: #34d399; }
.alert-error { background: rgba(239, 68, 68, 0.15); border: 1px solid #ef4444; color: #f87171; }

/* Age Gate */
#age-gate {
    position: fixed; inset: 0; background: rgba(10, 12, 16, 0.96);
    display: flex; align-items: center; justify-content: center; z-index: 9999; padding: 16px;
}
.age-box {
    background: var(--bg-card); border: 1px solid var(--border);
    padding: 32px; border-radius: 16px; max-width: 420px; text-align: center;
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    margin-top: 60px;
    padding: 32px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
}
