/*
Theme Name: Tube Embed Theme
Author: PrimoGay Dev
Description: Tema estilo Tube com grid de vídeos (5 colunas), embed do Xvideos, barra de pesquisa e menu.
Version: 1.0
*/

/* Variáveis de cores */
:root {
    --primary-color: #d2d2d3;
    --secondary-color: #34495e;
    --accent-color: #000000;
    --text-color: #333;
    --badge-bg: #e74c3c;
    --nav-bg: #333;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background: #f5f5f5;
}

/* Container principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    height: auto;
    background: var(--primary-color);
}

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.site-logo {
    width: 200px;
    height: auto;
}

/* Estilos para a navbar */
.site-header {
    background: #000000;
    padding: 20px;
    height: 100px;
}

.main-nav {
    background: #494949;
    padding: 8px 20px;
    border-radius: 6px;
    margin-top: 10px;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.nav-list li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 12px;
    transition: all 0.3s;
    border-radius: 4px;
    background: transparent;
}

.nav-list li a:hover {
    background: #000;
    color: white;
}

/* Responsividade Navbar */
@media (max-width: 768px) {
    .nav-list {
        gap: 15px;
        justify-content: center;
    }

    .nav-list li a {
        padding: 8px 10px;
        font-size: 14px;
    }
}

/* Cartões de categoria */
.card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

.item-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.collection-title {
    padding: 15px;
    text-align: center;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.badge {
    position: absolute;
    left: 10px;
    bottom: 10px;
    background: var(--badge-bg);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
}

.item-link {
    position: relative;
    display: block;
}

/* Dropdown menu */
.dropdown-menu {
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 10px;
}

.dropdown-menu a {
    color: var(--text-color);
    text-decoration: none;
    padding: 5px 0;
    display: block;
}

/* Responsividade geral */
@media (max-width: 768px) {
    .nav-list {
        flex-direction: column;
        align-items: center;
    }

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

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

/* Links padrão */
a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

/* Removido hover global que alterava a cor */
a:hover {
    color: inherit;
}

/* Ícones */
.icon-start, .icon-end {
    margin: 0 5px;
}

/* Rodapé */
footer {
    background: var(--primary-color);
    color: white;
    padding: 20px;
    text-align: center;
}

/* Paginação */
.page-item {
    display: inline-block;
    margin: 0 4px;
}

.page-link {
    display: inline-block;
    padding: 8px 12px;
    background-color: #000; /* Sempre preto */
    color: white;
    border-radius: 4px;
    text-decoration: none;
}

.page-link:hover {
    background-color: #000; /* Sem mudança no hover */
    color: white;
}

.page-link.active {
    background-color: #e60000;
    color: white;
}

/* Player */
#player {
    position: relative;
    padding-top: 56.25%;
}

.video-embed-container {
    position: relative;
    background-color: black;
    border-radius: 8px;
}

.video-embed-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.grid img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease-in-out;
}

.grid img:hover {
    transform: scale(1.05);
}

h2 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.25rem;
}

.prose p {
    font-size: 1rem;
    color: white;
}

.prose a {
    color: #e60000;
}

button, .bg-red-600:hover {
    transition: background-color 0.3s;
}

.text-red-500 {
    color: #e60000;
}
.video-playlist-section {
    margin-top: 40px;
    padding: 20px;
    background: #1a1a1a;
    border-radius: 10px;
}

.playlist-title {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 20px;
    text-align: center;
}

.playlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.playlist-item {
    background-color: #2b2b2b;
    padding: 10px;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.playlist-item:hover {
    transform: scale(1.03);
}

.playlist-item iframe {
    width: 100%;
    height: 180px;
    border-radius: 6px;
    border: none;
}

.playlist-video-title {
    color: #fff;
    font-size: 1rem;
    margin-top: 10px;
    text-align: center;
}
/* Aplica o fundo preto no corpo inteiro do site */
body {
    background-color: #000 !important;
    color: #fff; /* Deixa o texto branco para contraste */
}

/* Ajusta o fundo das áreas principais */
.container,
.site-content,
.site-header,
.site-footer,
.page,
.single,
.archive,
.home {
    background-color: #000 !important;
}

/* Garante que caixas internas (posts, widgets, etc.) também fiquem com fundo escuro */
.card,
.widget,
.post,
.entry-content,
.video-playlist-section,
.playlist-item {
    background-color: #111 !important;
    color: #fff;
}

/* Corrige links e títulos para não sumirem no fundo preto */
a {
    color: #ffffff;
}

a:hover {
    color: #d2d2d2;
}

h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
}

.video-page-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Área principal do player e banner inferior */
.video-main-area {
    flex: 1 1 70%;
}

/* Banner lateral (desktop) */
.banner-sidebar {
    flex: 1 1 25%;
    display: block;
}

.banner-sidebar img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Banner abaixo do vídeo */
.banner-below-video {
    margin-top: 20px;
    text-align: center;
}

.banner-below-video img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Responsivo: esconde banner lateral em telas pequenas */
@media (max-width: 768px) {
    .video-page-container {
        flex-direction: column;
    }

    .banner-sidebar {
        display: none;
    }
}
@media (max-width: 768px) {
  #menu-links {
    flex-direction: column;
    align-items: start;
    background-color: #1f1f1f;
    padding: 10px;
    border-radius: 4px;
  }

  #menu-links li {
    padding: 8px 0;
  }
}

