/* Omar YT Play Gaming Blog - Footer Component */

.main-footer {
  background: linear-gradient(135deg, var(--bg-primary) 0%, #000000 100%);
  color: var(--text-secondary);
  position: relative;
  overflow: hidden;
}

.main-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.footer-content {
  padding: var(--spacing-3xl) 0 var(--spacing-2xl) 0;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: var(--spacing-xl);
  position: relative;
  z-index: 1;
}

/* Footer Logo Section */
.footer-section:first-child {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.footer-logo-img {
  width: 50px;
  height: 50px;
  border-radius: var(--border-radius-md);
  filter: brightness(1.2);
}

.footer-logo-text {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--primary-color);
  text-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}

.footer-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--spacing-lg);
  max-width: 300px;
}

/* Social Links */
.social-links {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.social-link:hover::before {
  opacity: 1;
}

.social-link:hover {
  color: var(--bg-primary);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 255, 136, 0.3);
}

.social-link span {
  position: relative;
  z-index: 1;
}

/* YouTube specific styling */
.social-link[href*="youtube"] {
  background: linear-gradient(45deg, #ff0000, #ff4444);
  border-color: #ff0000;
}

.social-link[href*="youtube"]:hover {
  background: linear-gradient(45deg, #cc0000, #ff2222);
  box-shadow: 0 8px 20px rgba(255, 0, 0, 0.4);
}

/* Footer Sections */
.footer-title {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-lg);
  position: relative;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 1px;
}

/* Ofertas section special styling */
.footer-section:has(.footer-title:contains("Ofertas")),
.footer-section:nth-child(3) {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.05), rgba(255, 107, 0, 0.05));
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  position: relative;
}

.footer-section:nth-child(3) .footer-title {
  color: var(--primary-color);
  font-size: var(--text-xl);
}

.footer-section:nth-child(3) .footer-title::after {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  width: 40px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
  padding: var(--spacing-xs) 0;
  position: relative;
  display: inline-block;
}

.footer-links a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary-color);
  transition: width var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: var(--spacing-sm);
}

.footer-links a:hover::before {
  width: 100%;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: var(--spacing-lg) 0;
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
}

.copyright {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.affiliate-disclaimer {
  display: block;
  margin-top: var(--spacing-xs);
  font-style: italic;
  color: var(--secondary-color);
}

.affiliate-disclaimer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  transition: all var(--transition-fast);
}

.affiliate-disclaimer a:hover {
  color: var(--text-primary);
  text-shadow: 0 0 5px var(--primary-color);
}

/* Gaming background effects */
.main-footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(0, 255, 136, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 107, 0, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(157, 78, 221, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

/* Newsletter signup in footer (if needed) */
.footer-newsletter {
  margin-top: var(--spacing-lg);
}

.footer-newsletter-title {
  font-size: var(--text-base);
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.footer-newsletter-form {
  display: flex;
  gap: var(--spacing-sm);
}

.footer-newsletter-input {
  flex: 1;
  padding: var(--spacing-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-size: var(--text-sm);
}

.footer-newsletter-btn {
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--primary-color);
  color: var(--bg-primary);
  border: none;
  border-radius: var(--border-radius-sm);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.footer-newsletter-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: var(--spacing-lg);
  right: var(--spacing-lg);
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border: none;
  border-radius: 50%;
  color: var(--bg-primary);
  font-size: var(--text-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 255, 136, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--spacing-xl);
  }
  
  .footer-section:last-child {
    grid-column: span 3;
    margin-top: var(--spacing-lg);
  }
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    padding: var(--spacing-2xl) 0 var(--spacing-xl) 0;
  }
  
  .footer-section:first-child {
    grid-column: span 2;
  }
  
  /* Ofertas section maintains special styling */
  .footer-section:nth-child(3) {
    grid-column: span 2;
    margin: var(--spacing-sm) 0;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .footer-description {
    text-align: center;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    text-align: center;
  }
  
  .footer-section:first-child {
    grid-column: span 1;
  }
  
  .footer-logo {
    justify-content: center;
  }
  
  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-links a:hover {
    padding-left: 0;
  }
  
  .back-to-top {
    bottom: var(--spacing-md);
    right: var(--spacing-md);
    width: 45px;
    height: 45px;
  }
  
  .copyright {
    font-size: var(--text-xs);
  }
}

/* Accessibility improvements */
.social-link:focus,
.footer-links a:focus,
.back-to-top:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .main-footer {
    background: white;
    color: black;
  }
  
  .social-links,
  .back-to-top {
    display: none;
  }
  
  .footer-bottom {
    border-top-color: #ccc;
  }
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
  .main-footer {
    background: linear-gradient(135deg, #000000 0%, #111111 100%);
  }
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
  .social-link,
  .footer-links a,
  .back-to-top {
    transition: none;
  }
  
  .social-link:hover,
  .back-to-top:hover {
    transform: none;
  }
}
