/*
Theme Name: EroDark Gallery
Theme URI: https://seusite.com/
Author: Rafael / Dev IA
Author URI: https://seusite.com/
Description: Tema WordPress escuro no estilo Erome, focado em vídeos/imagens adultos, SEO e velocidade.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: erodark
*/

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #111;
    color: #eee;
}

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

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

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 12px;
}

/* HEADER */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background-color: #000;
    border-bottom: 1px solid #222;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.site-logo-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ff9acf, #ff2b7f);
}

.site-logo-text {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.04em;
}

.main-nav {
    display: none;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 16px;
    font-size: 14px;
}

.main-nav a {
    color: #ddd;
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
    color: #ff2b7f;
}

/* Header right */

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #27c93f;
    margin-right: 4px;
}

.header-live {
    font-size: 12px;
    color: #ccc;
    display: inline-flex;
    align-items: center;
}

/* Hamburger */

.hamburger {
    width: 28px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid #333;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.hamburger span,
.hamburger span::before,
.hamburger span::after {
    content: "";
    display: block;
    width: 16px;
    height: 2px;
    background-color: #fff;
    border-radius: 999px;
    position: relative;
}

.hamburger span::before {
    position: absolute;
    top: -5px;
}

.hamburger span::after {
    position: absolute;
    top: 5px;
}

/* Mobile menu */

.mobile-nav {
    display: none;
    border-top: 1px solid #222;
    background-color: #000;
}

.mobile-nav.open {
    display: block;
}

.mobile-nav ul {
    list-style: none;
    padding: 8px 12px 10px;
    margin: 0;
}

.mobile-nav li {
    padding: 6px 0;
}

.mobile-nav a {
    color: #ddd;
    font-size: 15px;
}

/* MAIN LAYOUT */

.site-main {
    padding-top: 64px; /* espaço pro header fixo */
    padding-bottom: 40px;
}

/* HOME TABS */

.home-tabs {
    margin: 16px 0 8px;
    display: flex;
    gap: 16px;
    font-size: 14px;
}

.home-tabs a {
    position: relative;
    padding-bottom: 6px;
    color: #aaa;
}

.home-tabs a.active {
    color: #ff2b7f;
    font-weight: 600;
}

.home-tabs a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 2px;
    border-radius: 999px;
    background-color: #ff2b7f;
}

/* GRID DE POSTS */

.post-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

@media (min-width: 640px) {
    .post-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 960px) {
    .post-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.post-card {
    background-color: #181818;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.post-thumb {
    position: relative;
    overflow: hidden;
}

.post-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.post-badges {
    position: absolute;
    left: 6px;
    bottom: 6px;
    display: flex;
    gap: 6px;
    font-size: 11px;
    align-items: center;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}

.post-badge {
    background-color: rgba(0,0,0,0.65);
    padding: 2px 6px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.post-meta-count {
    font-size: 11px;
}

.post-card-body {
    padding: 6px 8px 8px;
}

.post-card-title {
    font-size: 13px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-card-author {
    font-size: 11px;
    color: #aaa;
}

/* ICONS SIMPLES (texto mesmo, só visual) */

.icon-eye::before {
    content: "👁";
    margin-right: 4px;
}

.icon-cam::before {
    content: "📷";
    margin-right: 4px;
}

/* PAGINACAO */

.pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
}

.pagination a,
.pagination span {
    padding: 4px 8px;
    border-radius: 4px;
    background-color: #181818;
}

.pagination .current {
    background-color: #ff2b7f;
    color: #fff;
}

/* SINGLE */

.single-header {
    padding: 12px 0;
}

.single-title {
    font-size: 20px;
    margin: 6px 0 4px;
}

.single-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: #aaa;
    align-items: center;
    margin-bottom: 8px;
}

.single-meta-author {
    font-weight: 600;
}

.follow-btn {
    background-color: #ff2b7f;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.single-actions {
    margin: 10px 0 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
}

.single-actions button {
    background-color: #181818;
    border-radius: 4px;
    border: 1px solid #333;
    padding: 4px 8px;
    color: #ccc;
    cursor: pointer;
}

.single-actions button:hover {
    border-color: #ff2b7f;
    color: #fff;
}

.single-player {
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
}

.single-player iframe,
.single-player video {
    width: 100%;
    min-height: 220px;
}

.single-description {
    font-size: 14px;
    color: #ddd;
    line-height: 1.5;
    margin-top: 12px;
}

/* RELACIONADOS */

.related-section {
    margin-top: 24px;
}

.related-title {
    font-size: 16px;
    margin-bottom: 8px;
}

/* FOOTER */

.site-footer {
    padding: 16px 0 24px;
    border-top: 1px solid #222;
    font-size: 12px;
    color: #777;
    background-color: #000;
}

/* ARQUIVOS / CATEGORIAS */

.archive-header {
    padding: 10px 0 4px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.archive-title {
    font-size: 18px;
    font-weight: 600;
}


.home-search {
    margin: 10px 0 6px;
    display: flex;
    gap: 8px;
}

.home-search-input {
    flex: 1;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #333;
    background-color: #181818;
    color: #eee;
    font-size: 14px;
}

.home-search-input::placeholder {
    color: #666;
}

.home-search-btn {
    padding: 6px 14px;
    border-radius: 999px;
    border: none;
    background: #ff2b7f;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.home-search-btn:hover {
    filter: brightness(1.1);
}


/* ===========================
   ESTADOS DOS BOTÕES DA SINGLE
   =========================== */

/* Botão SEGUIR */
.follow-btn,
.js-follow-btn {
    background-color: #ff2b7f;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    color: #fff;
    transition: background-color .15s ease, transform .1s ease;
}

.follow-btn:hover,
.js-follow-btn:hover {
    background-color: #ff4b94;
    transform: translateY(-1px);
}

.follow-btn.is-active,
.js-follow-btn.is-active {
    background-color: #333;
    color: #fff;
}

/* Botões da barra de ações (curtir, repostar, salvar, compartilhar) */
.single-actions button {
    background-color: #181818;
    border-radius: 4px;
    border: 1px solid #333;
    padding: 4px 8px;
    color: #ccc;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
}

.single-actions button:hover {
    border-color: #ff2b7f;
    color: #fff;
    transform: translateY(-1px);
}

/* Quando o JS marcar como ativo (curtido / salvo) */
.single-actions button.is-active,
.js-like-btn.is-active,
.js-save-btn.is-active {
    background-color: #ff2b7f;
    border-color: #ff2b7f;
    color: #fff;
}

/* Ícone de coração/estrela se você quiser destacar (opcional) */
.single-actions button.is-active::before {
    filter: drop-shadow(0 0 4px rgba(255, 43, 127, 0.6));
}
