/*
Theme Name: O Vestiário
Theme URI: https://ovestiario.site
Author: Cristian Bessone & João Vitor Segura
Author URI: https://ovestiario.site
Description: Tema editorial de moda esportiva para O Vestiário — compatível com Elementor.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vestiario
Tags: news, sports, fashion, elementor, custom-colors, custom-menu, featured-images, full-width-template
*/

/* =============================================
   DESIGN TOKENS
   ============================================= */
:root {
  --gold:    #ECBF39;
  --dark:    #1C1B1D;
  --light:   #FEFEFE;
  --gray:    #F2F2F0;
  --gray-mid:#D9D9D9;
  --text-secondary: #6B6B6B;
  --border:  rgba(28,27,29,0.1);
  --gold-dim: rgba(236,191,57,0.15);

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;

  --shadow-sm: 0 1px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);

  --transition: 0.2s cubic-bezier(0.4,0,0.2,1);
  --max-width: 1200px;
  --content-width: 860px;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  background: var(--light);
  color: var(--dark);
  font-size: 15px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }
ul { list-style: none; }

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* =============================================
   UTILITY CLASSES
   ============================================= */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.tag {
  display: inline-block;
  background: var(--gold);
  color: var(--dark);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.tag-outline {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--dark);
}

.tag-dark {
  background: var(--dark);
  color: var(--gold);
}

.section-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--dark);
  border-left: 3px solid var(--gold);
  padding-left: 10px;
  margin-bottom: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.btn-gold {
  background: var(--gold);
  color: var(--dark);
}
.btn-gold:hover { background: #d4aa2a; color: var(--dark); }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--dark);
}
.btn-outline:hover { background: var(--gold); }

.btn-dark {
  background: var(--dark);
  color: var(--gold);
}
.btn-dark:hover { background: #2a2929; color: var(--gold); }

/* =============================================
   TICKER BAR
   ============================================= */
.ticker-bar {
  background: var(--dark);
  padding: 8px 0;
  overflow: hidden;
  position: relative;
}

.ticker-bar::before,
.ticker-bar::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
}
.ticker-bar::before { left: 0; background: linear-gradient(to right, var(--dark), transparent); }
.ticker-bar::after  { right: 0; background: linear-gradient(to left, var(--dark), transparent); }

.ticker-label {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker-track {
  display: flex;
  gap: 48px;
  animation: ticker-scroll 40s linear infinite;
  white-space: nowrap;
  padding-left: 120px;
}

.ticker-track:hover { animation-play-state: paused; }

.ticker-item {
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(254,254,254,0.7);
  white-space: nowrap;
}

.ticker-item::before {
  content: '·';
  margin-right: 12px;
  color: var(--gold);
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =============================================
   HEADER / NAVBAR
   ============================================= */
#site-header {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  gap: 24px;
}

.site-branding a {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--light);
  letter-spacing: 3px;
  text-transform: uppercase;
  line-height: 1;
}

.site-branding span {
  color: var(--gold);
}

.main-nav ul {
  display: flex;
  gap: 4px;
  align-items: center;
}

.main-nav ul li a {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  color: rgba(254,254,254,0.65);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.main-nav ul li a:hover,
.main-nav ul li.current-menu-item a {
  color: var(--gold);
  background: rgba(236,191,57,0.1);
}

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

.header-search {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(236,191,57,0.4);
  background: transparent;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}
.header-search:hover { border-color: var(--gold); background: var(--gold-dim); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: all var(--transition);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1px;
  background: var(--border);
  border-bottom: 1px solid var(--border);
}

.hero-main {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  background: var(--dark);
}

.hero-main .hero-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  opacity: 0.6;
  transition: transform 0.6s ease;
}

.hero-main:hover .hero-thumb { transform: scale(1.03); }

.hero-main-content {
  position: absolute;
  inset: 0;
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(to top, rgba(28,27,29,0.95) 0%, rgba(28,27,29,0.3) 60%, transparent 100%);
}

.hero-main-content .tag { margin-bottom: 10px; }

.hero-main-content h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--light);
  line-height: 1.15;
  margin-bottom: 10px;
}

.hero-main-content h2 a { color: var(--light); }
.hero-main-content h2 a:hover { color: var(--gold); }

.hero-meta {
  font-size: 11px;
  color: rgba(254,254,254,0.55);
  display: flex;
  gap: 12px;
  align-items: center;
}

.hero-sidebar {
  display: flex;
  flex-direction: column;
  background: var(--light);
}

.hero-sidebar-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  transition: background var(--transition);
}
.hero-sidebar-item:last-child { border-bottom: none; }
.hero-sidebar-item:hover { background: var(--gray); }

.hero-sidebar-item .thumb {
  height: 100%;
  min-height: 100px;
  object-fit: cover;
  background: var(--gray-mid);
}

.hero-sidebar-item-content {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}

.hero-sidebar-item-content .tag { font-size: 9px; }

.hero-sidebar-item-content h4 {
  font-size: 12px;
  line-height: 1.3;
  font-weight: 600;
}

.hero-sidebar-item-content h4 a { color: var(--dark); }
.hero-sidebar-item-content h4 a:hover { color: var(--gold); }

.hero-sidebar-item-content .meta {
  font-size: 10px;
  color: var(--text-secondary);
}

/* =============================================
   POST CARDS
   ============================================= */
.post-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--light);
  transition: all var(--transition);
}

.post-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.post-card-thumb {
  position: relative;
  overflow: hidden;
  background: var(--gray-mid);
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-card:hover .post-card-thumb img { transform: scale(1.04); }

.post-card-thumb .tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
}

.post-card-body { padding: 14px; }

.post-card-body h3 {
  font-size: 13px;
  line-height: 1.35;
  margin-bottom: 8px;
}

.post-card-body h3 a { color: var(--dark); }
.post-card-body h3 a:hover { color: var(--gold); }

.post-card-meta {
  font-size: 10px;
  color: var(--text-secondary);
  display: flex;
  gap: 8px;
  align-items: center;
}

/* =============================================
   NEWS GRID
   ============================================= */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.news-grid .post-card-thumb { height: 160px; }

/* =============================================
   FEATURED + RANKING
   ============================================= */
.featured-ranking-section {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 32px;
  padding: 32px 0;
}

.featured-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.featured-card .post-card-thumb { height: 200px; }

.featured-card-body { padding: 16px; }
.featured-card-body .tag { margin-bottom: 10px; }
.featured-card-body h3 {
  font-size: 16px;
  line-height: 1.3;
  margin-bottom: 8px;
}
.featured-card-body h3 a { color: var(--dark); }
.featured-card-body h3 a:hover { color: var(--gold); }
.featured-card-body .excerpt { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }

.ranking-list { display: flex; flex-direction: column; gap: 0; }

.ranking-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.ranking-item:last-child { border-bottom: none; }

.ranking-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  min-width: 26px;
}

.ranking-title {
  font-size: 12px;
  line-height: 1.4;
  color: var(--dark);
  font-weight: 500;
}

.ranking-title a { color: var(--dark); }
.ranking-title a:hover { color: var(--gold); }

/* =============================================
   NEWSLETTER BANNER
   ============================================= */
.newsletter-banner {
  background: var(--dark);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 8px 0 32px;
}

.newsletter-banner-text h3 {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--light);
  margin-bottom: 4px;
}

.newsletter-banner-text p {
  font-size: 12px;
  color: rgba(254,254,254,0.5);
  margin: 0;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.newsletter-input {
  height: 38px;
  padding: 0 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  color: var(--light);
  font-family: var(--font-body);
  font-size: 13px;
  width: 220px;
  transition: border-color var(--transition);
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.3); }
.newsletter-input:focus { outline: none; border-color: var(--gold); }

/* =============================================
   IDIOMAS BAR
   ============================================= */
.idiomas-bar {
  background: var(--dark);
  padding: 10px 0;
  border-top: 1px solid rgba(236,191,57,0.2);
}

.idiomas-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.idioma-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid rgba(236,191,57,0.3);
  border-radius: 20px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  color: rgba(254,254,254,0.7);
  letter-spacing: 0.5px;
  transition: all var(--transition);
  text-transform: uppercase;
}

.idioma-pill:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-dim);
}

/* =============================================
   FOOTER
   ============================================= */
#site-footer {
  background: var(--dark);
  padding: 48px 0 0;
  margin-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--light);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.footer-brand-name span { color: var(--gold); }

.footer-brand-desc {
  font-size: 12px;
  color: rgba(254,254,254,0.45);
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-social {
  display: flex;
  gap: 8px;
}

.footer-social a {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(236,191,57,0.3);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: rgba(254,254,254,0.5);
  transition: all var(--transition);
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }

.footer-col h5 {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 8px; }

.footer-col ul li a {
  font-size: 12px;
  color: rgba(254,254,254,0.5);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--light); }

.footer-bottom {
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-size: 10px;
  color: rgba(254,254,254,0.3);
  margin: 0;
}

/* =============================================
   CATEGORY PAGE
   ============================================= */
.category-header {
  background: var(--dark);
  padding: 40px 0;
  border-bottom: 3px solid var(--gold);
}

.category-header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.category-header h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  color: var(--light);
  line-height: 1;
  text-transform: uppercase;
}

.category-header h1 span { color: var(--gold); }

.category-header p {
  font-size: 13px;
  color: rgba(254,254,254,0.5);
  margin: 8px 0 0;
}

.category-count {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 40px 0;
}

.category-grid .post-card-thumb { height: 180px; }

/* =============================================
   SINGLE POST
   ============================================= */
.single-post-header {
  max-width: var(--content-width);
  margin: 48px auto 0;
  padding: 0 20px;
}

.single-post-header .tag { margin-bottom: 16px; }

.single-post-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 16px;
  line-height: 1.1;
}

.single-post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--text-secondary);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.single-post-featured {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto 32px;
  padding: 0 20px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.single-post-featured img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.single-post-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 20px 48px;
}

.single-post-content p { font-size: 16px; line-height: 1.75; margin-bottom: 1.4rem; color: #2a2929; }
.single-post-content h2 { font-size: 1.6rem; margin: 2rem 0 1rem; }
.single-post-content h3 { font-size: 1.3rem; margin: 1.6rem 0 0.8rem; }
.single-post-content blockquote {
  border-left: 4px solid var(--gold);
  padding: 12px 20px;
  margin: 24px 0;
  background: var(--gray);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar-widget {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.sidebar-widget:last-child { border-bottom: none; }

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

.pagination a,
.pagination span {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  transition: all var(--transition);
}

.pagination a:hover,
.pagination .current {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark);
}

/* =============================================
   ELEMENTOR OVERRIDES
   ============================================= */
.elementor-section { width: 100%; }

.elementor-page #site-header { position: sticky; top: 0; z-index: 1000; }

/* Full-width Elementor sections */
.elementor-section.elementor-section-stretched { width: 100% !important; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .hero-section { grid-template-columns: 1fr; }
  .hero-sidebar { flex-direction: row; flex-wrap: wrap; }
  .hero-sidebar-item { width: 50%; border-right: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .featured-ranking-section { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .main-nav.open { display: block; position: absolute; top: 58px; left: 0; right: 0; background: var(--dark); padding: 16px; border-top: 1px solid rgba(255,255,255,0.08); }
  .main-nav.open ul { flex-direction: column; gap: 4px; }
  .hamburger { display: flex; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .newsletter-banner { flex-direction: column; align-items: flex-start; }
  .newsletter-form { width: 100%; }
  .newsletter-input { flex: 1; }
}

@media (max-width: 480px) {
  .news-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr; }
  .hero-sidebar-item { width: 100%; }
}
