/*
Theme Name: Netflix Events Theme
Description: Tema WordPress estilo Netflix con puerta de entrada de login, integración de Events Manager, sistema de chat en tiempo real y alertas por correo electrónico. Presenta slideshow de eventos próximos, fondos de video, diseño estético Netflix, funcionalidad de chat compatible con Hostinger y notificaciones personalizables de eventos por correo. Incluye traducción completa al español.
Author: MiniMax Agent
Version: 1.3
Requires PHP: 8.0
Text Domain: netflix-events-theme
Language: Spanish (Spain)
*/

/* ===== NETFLIX BRAND COLORS ===== */
:root {
  --netflix-red: #E50914;
  --netflix-dark-red: #B20710;
  --netflix-black: #141414;
  --netflix-dark-gray: #222222;
  --netflix-gray: #333333;
  --netflix-light-gray: #757575;
  --netflix-white: #FFFFFF;
  --netflix-gradient: linear-gradient(135deg, #141414 0%, #000000 100%);
}

/* ===== GLOBAL RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background-color: var(--netflix-black);
  color: var(--netflix-white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== LOGIN PAGE STYLES ===== */
.login-container {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--netflix-gradient);
}

.login-background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3;
}

.login-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.9) 100%
  );
  z-index: 2;
}

.login-content {
  position: relative;
  z-index: 3;
  max-width: 450px;
  width: 90%;
  background: rgba(0, 0, 0, 0.85);
  padding: 60px 68px 40px;
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.netflix-logo {
  text-align: center;
  margin-bottom: 28px;
}

.netflix-logo h1 {
  color: var(--netflix-red);
  font-size: 32px;
  font-weight: bold;
  letter-spacing: 1px;
}

.login-form {
  width: 100%;
}

.login-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--netflix-white);
  margin-bottom: 28px;
  text-align: left;
}

.input-group {
  position: relative;
  margin-bottom: 16px;
}

.form-input {
  width: 100%;
  height: 50px;
  background: var(--netflix-gray);
  border: none;
  border-radius: 4px;
  color: var(--netflix-white);
  font-size: 16px;
  padding: 16px 20px 0;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  background: var(--netflix-dark-gray);
  border: 1px solid var(--netflix-red);
}

.form-label {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--netflix-light-gray);
  font-size: 16px;
  transition: all 0.3s ease;
  pointer-events: none;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
  top: 8px;
  font-size: 11px;
  color: var(--netflix-light-gray);
  transform: translateY(0);
}

.login-button {
  width: 100%;
  height: 48px;
  background: var(--netflix-red);
  border: none;
  border-radius: 4px;
  color: var(--netflix-white);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s ease;
  margin: 24px 0 12px;
}

.login-button:hover {
  background: var(--netflix-dark-red);
}

.login-button:disabled {
  background: var(--netflix-gray);
  cursor: not-allowed;
}

.google-login-button {
  width: 100%;
  height: 48px;
  background: var(--netflix-white);
  border: none;
  border-radius: 4px;
  color: var(--netflix-black);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.google-login-button:hover {
  background: #f5f5f5;
}

.divider {
  text-align: center;
  color: var(--netflix-light-gray);
  margin: 20px 0;
  position: relative;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--netflix-gray);
}

.divider span {
  background: rgba(0, 0, 0, 0.85);
  padding: 0 16px;
}

.error-message {
  color: var(--netflix-red);
  font-size: 14px;
  margin-top: 8px;
  text-align: center;
}

/* ===== MAIN SITE STYLES ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(20, 20, 20, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4%;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: var(--netflix-black);
}

.header-logo {
  color: var(--netflix-red);
  font-size: 28px;
  font-weight: bold;
  text-decoration: none;
  letter-spacing: 1px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  color: var(--netflix-white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--netflix-light-gray);
}

.user-menu {
  position: relative;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  cursor: pointer;
  background: var(--netflix-red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--netflix-white);
  font-weight: bold;
}

.logout-button {
  background: transparent;
  border: 1px solid var(--netflix-light-gray);
  color: var(--netflix-white);
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.logout-button:hover {
  border-color: var(--netflix-white);
  background: var(--netflix-white);
  color: var(--netflix-black);
}

/* ===== EVENTS SLIDESHOW ===== */
.events-slideshow {
  margin-top: 70px;
  position: relative;
  height: 56.25vw;
  min-height: 400px;
  max-height: 800px;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 100px 4% 60px;
  color: var(--netflix-white);
}

.slide-title {
  font-size: 3.5vw;
  font-weight: 700;
  margin-bottom: 1vw;
  max-width: 40%;
  line-height: 1.1;
}

.slide-description {
  font-size: 1.4vw;
  font-weight: 400;
  line-height: 1.3;
  max-width: 40%;
  margin-bottom: 2vw;
}

.slide-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 2vw;
  font-size: 1.1vw;
}

.slide-date {
  color: var(--netflix-red);
  font-weight: 600;
}

.slide-location {
  color: var(--netflix-light-gray);
}

.slide-actions {
  display: flex;
  gap: 16px;
}

.play-button {
  background: var(--netflix-white);
  color: var(--netflix-black);
  border: none;
  padding: 12px 32px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.play-button:hover {
  background: rgba(255, 255, 255, 0.8);
}

.info-button {
  background: rgba(109, 109, 110, 0.7);
  color: var(--netflix-white);
  border: none;
  padding: 12px 32px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.info-button:hover {
  background: rgba(109, 109, 110, 0.5);
}

.slideshow-controls {
  position: absolute;
  bottom: 20px;
  right: 4%;
  display: flex;
  gap: 8px;
}

.slide-indicator {
  width: 12px;
  height: 2px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slide-indicator.active {
  background: var(--netflix-white);
}

/* ===== EVENTS GRID ===== */
.events-section {
  padding: 60px 4%;
}

.section-title {
  font-size: 1.4vw;
  font-weight: 700;
  color: var(--netflix-white);
  margin-bottom: 20px;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.event-card {
  background: var(--netflix-dark-gray);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
  cursor: pointer;
}

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

.event-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.event-info {
  padding: 16px;
}

.event-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--netflix-white);
  margin-bottom: 8px;
}

.event-date-location {
  color: var(--netflix-light-gray);
  font-size: 14px;
  margin-bottom: 12px;
}

.event-description {
  color: var(--netflix-light-gray);
  font-size: 14px;
  line-height: 1.4;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .slide-title {
    font-size: 5vw;
    max-width: 60%;
  }
  
  .slide-description {
    font-size: 2vw;
    max-width: 60%;
  }
  
  .slide-meta {
    font-size: 1.5vw;
  }
  
  .section-title {
    font-size: 2vw;
  }
}

@media (max-width: 768px) {
  .login-content {
    padding: 40px 28px;
  }
  
  .header-nav {
    gap: 20px;
  }
  
  .nav-link {
    font-size: 12px;
  }
  
  .slide-title {
    font-size: 7vw;
    max-width: 80%;
  }
  
  .slide-description {
    font-size: 3vw;
    max-width: 80%;
  }
  
  .slide-meta {
    font-size: 2.5vw;
  }
  
  .section-title {
    font-size: 3vw;
  }
  
  .events-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .login-content {
    padding: 30px 20px;
  }
  
  .login-title {
    font-size: 28px;
  }
  
  .slide-actions {
    flex-direction: column;
    gap: 12px;
  }
  
  .play-button,
  .info-button {
    padding: 10px 24px;
    font-size: 14px;
  }
  
  .events-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-left {
  animation: slideInLeft 0.8s ease-out;
}

/* ===== LOADING SPINNER ===== */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--netflix-white);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== UTILITY CLASSES ===== */
.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}