/**
 * Home Page Theme Styles
 * Enhanced hero section and social icons for index.php
 * Bootstrap 5.3.8 optimized responsive design
 */

/* ===================================
   Container Constraints - Prevent Content Spillage
   =================================== */

.hero-section .container,
section .container {
  max-width: 1140px;
}

/* ===================================
   Hero Social Icons - REVERSED Responsive Design
   Mobile: Stacked buttons with text
   Desktop: Icon-only squares in single row
   =================================== */

/* Mobile (default): Stacked full-width buttons with text labels */
.hero-section .social-links {
  display: flex;
  flex-direction: column; /* Stack vertically on mobile */
  gap: 0.75rem;
  margin-top: 2rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.hero-section .social-links .btn {
  /* Mobile: Full-width rounded rectangles with icon + text */
  width: 100%;
  height: auto;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border: 2px solid currentColor;
  background: transparent;
  transition: all 0.2s ease;
  font-size: 1rem;
  font-weight: 500;
}

.hero-section .social-links .btn i,
.hero-section .social-links .btn .bi {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

/* Show text labels on mobile using aria-label */
.hero-section .social-links .btn::after {
  content: attr(aria-label);
  white-space: nowrap;
}

/* Desktop: Single row of icon-only squares (NO TEXT) */
@media (min-width: 768px) {
  .hero-section .social-links {
    flex-direction: row; /* Horizontal row on desktop */
    flex-wrap: nowrap;   /* Force single row */
    gap: 0.75rem;
    justify-content: center;
    max-width: none;
  }
  
  .hero-section .social-links .btn {
    width: 56px;
    height: 56px;
    padding: 0;
    border-radius: 0.5rem; /* Rounded squares */
    gap: 0;
  }
  
  .hero-section .social-links .btn i,
  .hero-section .social-links .btn .bi {
    font-size: 1.75rem;
  }
  
  /* HIDE text labels on desktop - icon only */
  .hero-section .social-links .btn::after {
    content: none;
  }
}

/* Hover effects */
.hero-section .social-links .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 46, 136, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

/* Platform-specific colors */
.hero-section .social-links .btn[title*="YouTube"]:hover { border-color: #FF0000; color: #FF0000; }
.hero-section .social-links .btn[title*="Twitch"]:hover { border-color: #9146FF; color: #9146FF; }
.hero-section .social-links .btn[title*="Discord"]:hover { border-color: #5865F2; color: #5865F2; }
.hero-section .social-links .btn[title*="GitHub"]:hover { border-color: #fff; color: #fff; }
.hero-section .social-links .btn[title*="LinkedIn"]:hover { border-color: #0A66C2; color: #0A66C2; }
.hero-section .social-links .btn[title*="Email"]:hover { border-color: #FF2E88; color: #FF2E88; }

/* ===================================
   Responsive Typography
   =================================== */
@media (max-width: 575.98px) {
  .hero-section .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-section .lead {
    font-size: 1rem;
  }
}

/* ===================================
   Theme Toggle Compatibility
   =================================== */
[data-bs-theme="dark"] .hero-section .social-links .btn {
  border-color: rgba(255, 255, 255, 0.5);
  color: rgba(255, 255, 255, 0.9);
}

[data-bs-theme="dark"] .hero-section .social-links .btn:hover {
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="light"] .hero-section .social-links .btn {
  border-color: rgba(0, 0, 0, 0.5);
  color: rgba(0, 0, 0, 0.8);
}

[data-bs-theme="light"] .hero-section .social-links .btn:hover {
  border-color: rgba(0, 0, 0, 0.8);
  background: rgba(0, 0, 0, 0.05);
}
