/*
Theme Name: ENTUMENTV Pro
Theme URI: https://entumentv.com
Description: Tema profesional premium para ENTUMENTV - Entretenimiento y noticias
Author: ENTUMENTV
Version: 3.0.0
License: GPL v2 or later
Text Domain: entumentv-pro
*/

:root {
  --primary: #E63946;
  --secondary: #1F2937;
  --accent: #F59E0B;
  --dark: #111827;
  --light: #F9FAFB;
  --border: #E5E7EB;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: var(--secondary);
  background: var(--light);
}

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

a { color: var(--primary); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--accent); }

/* HEADER */
.site-header {
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-logo a {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-nav ul {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  flex: 1;
}

.site-nav a {
  font-weight: 600;
  color: var(--secondary);
  position: relative;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--primary);
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--primary);
  transition: width 0.3s;
}

.site-nav a:hover::after {
  width: 100%;
}

.header-search {
  display: flex;
  align-items: center;
}

.header-search input {
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 280px;
  font-size: 0.95rem;
}

/* HERO SLIDER */
.hero-slider {
  position: relative;
  height: 600px;
  background: linear-gradient(135deg, var(--primary), rgba(230, 57, 70, 0.8));
  overflow: hidden;
  margin: 2rem 0;
  box-shadow: var(--shadow-lg);
}

.slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.slider-item {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.slider-item.active {
  opacity: 1;
}

.slider-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.slider-content {
  position: relative;
  z-index: 2;
  padding: 4rem 3rem;
  color: white;
  max-width: 800px;
  width: 100%;
}

.slider-category {
  display: inline-block;
  background: var(--accent);
  color: var(--dark);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.slider-title {
  font-size: 3.2rem;
  font-weight: 900;
  margin-bottom: 1rem;
  line-height: 1.1;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.slider-meta {
  display: flex;
  gap: 2rem;
  font-size: 0.95rem;
  opacity: 0.95;
}

/* Slider Controls */
.slider-controls {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  gap: 1rem;
  z-index: 3;
}

.slider-button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: bold;
  transition: all 0.3s;
  box-shadow: var(--shadow);
}

.slider-button:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

.slider-dots {
  position: absolute;
  bottom: 2rem;
  left: 3rem;
  display: flex;
  gap: 1rem;
  z-index: 3;
}

.slider-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.slider-dot.active {
  background: white;
  width: 40px;
  border-radius: 7px;
}

/* MAIN CONTENT */
.main-content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
}

/* ARTICLES GRID */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.article-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.article-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  overflow: hidden;
  background: var(--border);
}

.article-card:hover .article-image {
  transform: scale(1.05);
  transition: transform 0.3s;
}

.article-body {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.article-category {
  display: inline-block;
  background: rgba(230, 57, 70, 0.1);
  color: var(--primary);
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.article-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.article-card:hover .article-title {
  color: var(--primary);
}

.article-excerpt {
  font-size: 0.95rem;
  color: #6B7280;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  line-height: 1.5;
}

.article-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: #9CA3AF;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

/* SIDEBAR */
.sidebar {
  width: 300px;
}

.widget {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.widget-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--primary);
}

/* Newsletter Widget */
.newsletter-widget {
  background: linear-gradient(135deg, var(--primary), rgba(230, 57, 70, 0.9));
  color: white;
}

.newsletter-widget .widget-title {
  color: white;
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.newsletter-form p {
  font-size: 0.9rem;
  opacity: 0.95;
}

.newsletter-form input {
  padding: 0.8rem;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
}

.newsletter-form button {
  background: var(--accent);
  color: var(--dark);
  border: none;
  padding: 0.8rem;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.newsletter-form button:hover {
  background: #F1860F;
  transform: translateY(-2px);
}

/* Trending Widget */
.trending-item {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 1rem;
}

.trending-item:last-child {
  border-bottom: none;
}

.trending-number {
  background: var(--primary);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.trending-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--secondary);
  line-height: 1.3;
}

.trending-title a:hover {
  color: var(--primary);
}

.trending-stats {
  font-size: 0.8rem;
  color: #9CA3AF;
  margin-top: 0.3rem;
}

/* FOOTER */
.site-footer {
  background: var(--secondary);
  color: white;
  margin-top: 5rem;
  padding: 3rem 2rem;
  border-top: 3px solid var(--primary);
  text-align: center;
}

/* PAGINATION */
.pagination {
  text-align: center;
  margin: 3rem 0;
}

.pagination a, .pagination span {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  margin: 0.3rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--secondary);
  font-weight: 600;
  transition: all 0.3s;
}

.pagination a:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.pagination .current {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .main-content-wrapper {
    grid-template-columns: 1fr;
  }

  .sidebar {
    width: 100%;
  }

  .site-nav ul {
    gap: 1.5rem;
  }

  .slider-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }

  .header-container {
    flex-direction: column;
    gap: 1rem;
  }

  .site-nav ul {
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }

  .header-search input {
    width: 100%;
  }

  .hero-slider {
    height: 400px;
  }

  .slider-content {
    padding: 2rem 1.5rem;
  }

  .slider-title {
    font-size: 1.8rem;
  }

  .main-content-wrapper {
    padding: 2rem 1rem;
  }

  .article-image {
    height: 220px;
  }
}

@media (max-width: 480px) {
  .hero-slider {
    height: 300px;
  }

  .slider-title {
    font-size: 1.3rem;
  }

  .article-card {
    margin-bottom: 1rem;
  }

  .article-title {
    font-size: 1.15rem;
  }
}
