/*
Theme Name: Guapamag TV
Template: generatepress
Version: 1.0
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: #0f0f0f;
  color: #f1f1f1;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

a { color: #f1f1f1; text-decoration: none; }
a:hover { color: #ff0066; }

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

/* ===== HEADER ===== */
.site-header {
  background: #1a1a1a;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #333;
  display: flex;
  align-items: center;
  padding: 0 24px;
  justify-content: space-between;
}

.site-branding .site-title {
  font-size: 22px;
  font-weight: 700;
  color: #ff0066;
  letter-spacing: -0.5px;
}

.site-branding .site-title a { color: #ff0066; }

.header-search {
  flex: 1;
  max-width: 500px;
  margin: 0 24px;
}

.header-search input {
  width: 100%;
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 24px;
  padding: 8px 18px;
  color: #f1f1f1;
  font-size: 14px;
  outline: none;
}

.header-search input:focus { border-color: #ff0066; }

.header-cta a {
  background: #ff0066;
  color: #fff;
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  transition: background 0.2s;
}

.header-cta a:hover { background: #cc0052; color: #fff; }

/* ===== CATEGORY PILLS ===== */
.category-pills {
  background: #1a1a1a;
  position: sticky;
  top: 56px;
  z-index: 99;
  padding: 10px 24px;
  border-bottom: 1px solid #222;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-pills::-webkit-scrollbar { display: none; }

.category-pills a {
  background: #333;
  color: #f1f1f1;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
}

.category-pills a:hover,
.category-pills a.active,
.category-pills a:focus {
  background: #ff0066;
  color: #fff;
}

/* ===== LAYOUT ===== */
.site-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}

.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 24px;
  align-items: start;
}

/* ===== VIDEO GRID ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.video-card {
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255,0,102,0.2);
}

.video-thumb-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #222;
}

.video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

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

.video-duration {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0,0,0,.85);
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 600;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.4);
  opacity: 0;
  transition: opacity .2s;
}

.video-card:hover .play-overlay { opacity: 1; }

.play-overlay svg {
  width: 48px;
  height: 48px;
  fill: #fff;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.6));
}

.video-info { padding: 10px 12px 14px; }

.video-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-meta {
  font-size: 12px;
  color: #888;
}

.video-model { color: #ff0066; font-weight: 500; }

/* ===== SIDEBAR ===== */
.widget-area { position: sticky; top: 120px; }

.widget {
  background: #1a1a1a;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
  border: 1px solid #222;
}

.widget-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #333;
}

.cta-box {
  background: linear-gradient(135deg, #ff0066, #cc0052);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  margin-bottom: 20px;
}

.cta-box h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #fff;
}

.cta-box p {
  font-size: 12px;
  color: rgba(255,255,255,.85);
  margin-bottom: 14px;
}

.cta-box a {
  display: inline-block;
  background: #fff;
  color: #ff0066;
  padding: 10px 24px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.2s;
}

.cta-box a:hover { transform: scale(1.04); }

.models-list { list-style: none; }

.models-list li {
  padding: 6px 0;
  border-bottom: 1px solid #222;
}

.models-list li:last-child { border-bottom: none; }

.models-list a {
  color: #ccc;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
}

.models-list a:hover { color: #ff0066; }

.model-count {
  background: #333;
  color: #888;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 20px;
}

/* ===== SINGLE VIDEO PAGE ===== */
.video-player-wrap {
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
}

.video-player-wrap video,
.video-player-wrap iframe {
  width: 100%;
  height: 100%;
}

.video-single-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.video-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }

.video-tag {
  background: #222;
  color: #aaa;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  transition: background 0.2s, color 0.2s;
}

.video-tag:hover { background: #ff0066; color: #fff; }

.subscribe-banner {
  border: 1px solid #ff0066;
  border-radius: 8px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255,0,102,.07);
  margin: 24px 0;
}

.subscribe-banner .banner-text h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}

.subscribe-banner .banner-text p { font-size: 13px; color: #aaa; }

.subscribe-banner a {
  background: #ff0066;
  color: #fff;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s;
}

.subscribe-banner a:hover { background: #cc0052; color: #fff; }

/* ===== PAGINATION ===== */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }

.pagination a, .pagination span {
  background: #1a1a1a;
  border: 1px solid #333;
  color: #f1f1f1;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 13px;
  transition: background 0.2s, border-color 0.2s;
}

.pagination a:hover { background: #ff0066; border-color: #ff0066; color: #fff; }
.pagination .current { background: #ff0066; border-color: #ff0066; color: #fff; }

/* ===== FOOTER ===== */
.site-footer {
  background: #1a1a1a;
  border-top: 1px solid #222;
  padding: 24px;
  text-align: center;
  color: #555;
  font-size: 12px;
  margin-top: 48px;
}

.site-footer a { color: #777; }
.site-footer a:hover { color: #ff0066; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .video-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .content-sidebar-wrap { grid-template-columns: 1fr; }
  .widget-area { position: static; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
  .video-grid { grid-template-columns: 1fr; }
  .subscribe-banner { flex-direction: column; text-align: center; }
  .site-header { padding: 0 12px; }
  .site-content { padding: 12px; }
}

/* ===== LAYOUT FIX: GeneratePress flex override ===== */

/* Force .site-content to stack vertically on home/archive */
body.home .site-content,
body.blog .site-content,
body.post-type-archive-video .site-content {
    display: block !important;
    padding: 0 !important;
    max-width: 1400px !important;
}

/* Pills bar spans full width, positioned below sticky header */
body.home .category-pills,
body.blog .category-pills,
body.post-type-archive-video .category-pills {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Content + sidebar wrap takes full parent width */
body.home .content-sidebar-wrap,
body.blog .content-sidebar-wrap,
body.post-type-archive-video .content-sidebar-wrap {
    display: grid !important;
    grid-template-columns: 1fr 280px !important;
    gap: 24px !important;
    padding: 24px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
}

/* Remove GeneratePress padding from grid container on home */
body.home .site.grid-container,
body.blog .site.grid-container {
    max-width: 100% !important;
    padding: 0 !important;
}

/* Outer site-content on home: full width, no extra padding */
body.home #content.site-content,
body.blog #content.site-content {
    padding: 0 !important;
    max-width: 100% !important;
}


/* ===== RESPONSIVE FIXES ===== */

/* Desktop: 3 colunas (cards maiores) */
.video-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
}

/* Thumbnail: proporção 16:9 forçada */
.video-thumb-wrap {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
    background: #111;
}
.video-thumb-wrap img,
.video-thumb-wrap .video-placeholder {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}

/* Stats: views + likes (substitui data) */
.video-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
    color: #888;
    font-size: 12px;
}
.video-stats svg {
    width: 14px;
    height: 14px;
    fill: #888;
    vertical-align: middle;
    margin-right: 3px;
}
.video-stats span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* Mobile: corrige layout */
@media (max-width: 768px) {
    body.home .content-sidebar-wrap,
    body.blog .content-sidebar-wrap,
    body.post-type-archive-video .content-sidebar-wrap {
        grid-template-columns: 1fr !important;
        padding: 10px !important;
    }

    /* Sidebar abaixo do grid no mobile */
    body.home .widget-area,
    body.blog .widget-area {
        order: 2;
    }

    body.home .content-area,
    body.blog .content-area {
        order: 1;
    }

    /* 2 colunas no mobile */
    .video-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    /* Pills: scroll horizontal */
    .category-pills {
        overflow-x: auto !important;
        white-space: nowrap !important;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 8px 12px !important;
    }
    .category-pills::-webkit-scrollbar { display: none; }

    /* Cards menores no mobile */
    .video-card-title { font-size: 12px; }
}

@media (max-width: 480px) {
    .video-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }
}

/* Oculta "Sample Page" do menu */
.main-navigation a[href*="sample-page"] { display: none !important; }
