/* Root Variables - Dark Theme Only - FTLT Namespace */
:root {
  --ftlt-primary-bg: #000000;
  --ftlt-secondary-bg: #1a1a1a;
  --ftlt-accent-bg: #2a2a2a;
  --ftlt-text-primary: #ffffff;
  --ftlt-text-secondary: #b0b0b0;
  --ftlt-text-accent: #ffffff;
  --ftlt-border-color: #333333;
  --ftlt-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
  --ftlt-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --ftlt-accent-gradient: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
}

/* Reset and Base Styles - FTLT Scoped */
.ftlt-footer-wrapper * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.ftlt-footer-wrapper {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  transition: all 0.3s ease;
}

/* Footer Styles - FTLT Scoped */
.ftlt-footer {
  background: var(--ftlt-primary-bg);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--ftlt-border-color);
  transition: all 0.3s ease;
}

.ftlt-footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
  position: relative;
  z-index: 2;
}

.ftlt-footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

/* Brand Section - FTLT Scoped */
.ftlt-footer-brand {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.ftlt-footer-brand.ftlt-animate-in {
  opacity: 1;
  transform: translateY(0);
}

.ftlt-brand-logo {
  font-size: 3rem;
  font-weight: 900;
  background: var(--ftlt-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.ftlt-brand-mission {
  font-size: 1.1rem;
  color: var(--ftlt-text-secondary);
  max-width: 300px;
  line-height: 1.7;
}

.ftlt-highlight {
  color: var(--ftlt-text-accent);
  font-weight: 600;
  background: var(--ftlt-accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Social Media Section - FTLT Scoped */
.ftlt-footer-social {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease 0.1s;
}

.ftlt-footer-social.ftlt-animate-in {
  opacity: 1;
  transform: translateY(0);
}

.ftlt-section-title {
  color: var(--ftlt-text-primary);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
}

.ftlt-section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--ftlt-accent-gradient);
  border-radius: 2px;
}

.ftlt-social-links {
  display: flex;
  gap: 0.8rem;
  flex-wrap: nowrap;
  justify-content: flex-start;
}

.ftlt-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 12px;
  background: var(--ftlt-secondary-bg);
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid var(--ftlt-border-color);
  position: relative;
  overflow: hidden;
  animation: ftltSocialPulse 3s infinite ease-in-out;
  flex-shrink: 0;
}

/* Auto animation for social icons - FTLT Scoped */
@keyframes ftltSocialPulse {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6);
    border-color: var(--ftlt-border-color);
  }
  50% { 
    transform: scale(1.08);
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    border-color: rgba(255, 255, 255, 0.4);
  }
}

/* Staggered animation delays for each social icon - FTLT Scoped */
.ftlt-social-link:nth-child(1) { animation-delay: 0s; }
.ftlt-social-link:nth-child(2) { animation-delay: 0.6s; }
.ftlt-social-link:nth-child(3) { animation-delay: 1.2s; }
.ftlt-social-link:nth-child(4) { animation-delay: 1.8s; }
.ftlt-social-link:nth-child(5) { animation-delay: 2.4s; }

.ftlt-social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--ftlt-gradient);
  transition: left 0.3s ease;
  z-index: -1;
}

.ftlt-social-link:hover::before {
  left: 0;
}

.ftlt-social-link:hover {
  color: white;
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--ftlt-shadow);
  border-color: transparent;
}

.ftlt-social-link svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.ftlt-social-link:hover svg {
  transform: scale(1.1);
}

/* Social Platform Specific Colors - FTLT Scoped */
.ftlt-social-link.ftlt-instagram:hover { background: linear-gradient(45deg, #833ab4, #fd1d1d, #fcb045); }
.ftlt-social-link.ftlt-facebook:hover { background: #1877f2; }
.ftlt-social-link.ftlt-twitter:hover { background: #1da1f2; }
.ftlt-social-link.ftlt-youtube:hover { background: #ff0000; }
.ftlt-social-link.ftlt-linkedin:hover { background: #0077b5; }

/* Legal Section - FTLT Scoped */
.ftlt-footer-legal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease 0.2s;
}

.ftlt-footer-legal.ftlt-animate-in {
  opacity: 1;
  transform: translateY(0);
}

.ftlt-legal-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.ftlt-legal-link {
  color: var(--ftlt-text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 1rem;
}

.ftlt-legal-link::before {
  content: '→';
  position: absolute;
  left: 0;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  color: var(--ftlt-text-accent);
}

.ftlt-legal-link:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.ftlt-legal-link:hover {
  color: var(--ftlt-text-accent);
  transform: translateX(8px);
}

/* Footer Bottom - FTLT Scoped */
.ftlt-footer-bottom {
  text-align: center;
}

.ftlt-footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ftlt-border-color) 20%, var(--ftlt-border-color) 80%, transparent);
  margin-bottom: 2rem;
}

.ftlt-copyright {
  color: var(--ftlt-text-secondary);
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Enhanced Mobile Responsive Design - FTLT Scoped */

/* Tablet and smaller desktop */
@media (max-width: 1024px) {
  .ftlt-footer-container {
    padding: 3.5rem 2rem 2rem;
  }
  
  .ftlt-footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  
  .ftlt-footer-brand {
    grid-column: 1 / -1;
    text-align: center;
  }
  
  .ftlt-brand-mission {
    max-width: 400px;
    margin: 0 auto;
  }
}

/* Mobile landscape and small tablets */
@media (max-width: 768px) {
  .ftlt-footer-container {
    padding: 3rem 1.5rem 2rem;
  }
  
  .ftlt-footer-main {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  
  .ftlt-brand-logo {
    font-size: 2.5rem;
  }
  
  .ftlt-brand-mission {
    max-width: none;
    font-size: 1rem;
  }
  
  .ftlt-section-title {
    font-size: 1.1rem;
  }
  
  .ftlt-section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .ftlt-social-links {
    justify-content: center;
    gap: 1rem;
  }
  
  .ftlt-legal-links {
    align-items: center;
  }
  
  .ftlt-legal-link {
    padding-left: 0;
  }
  
  .ftlt-legal-link::before {
    display: none;
  }
  
  .ftlt-legal-link:hover {
    transform: none;
  }
}

/* Mobile portrait */
@media (max-width: 480px) {
  .ftlt-footer-container {
    padding: 2rem 1rem 1.5rem;
  }
  
  .ftlt-footer-main {
    gap: 2rem;
  }
  
  .ftlt-brand-logo {
    font-size: 2rem;
  }
  
  .ftlt-brand-mission {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  .ftlt-section-title {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .ftlt-social-link {
    width: 40px;
    height: 40px;
  }
  
  .ftlt-social-link svg {
    width: 18px;
    height: 18px;
  }
  
  .ftlt-social-links {
    gap: 0.8rem;
  }
  
  .ftlt-legal-links {
    gap: 0.6rem;
  }
  
  .ftlt-legal-link {
    font-size: 0.9rem;
  }
  
  .ftlt-copyright {
    font-size: 0.8rem;
    line-height: 1.5;
  }
}

/* Very small mobile screens */
@media (max-width: 360px) {
  .ftlt-footer-container {
    padding: 1.5rem 0.8rem 1.2rem;
  }
  
  .ftlt-brand-logo {
    font-size: 1.8rem;
  }
  
  .ftlt-brand-mission {
    font-size: 0.9rem;
  }
  
  .ftlt-social-link {
    width: 36px;
    height: 36px;
  }
  
  .ftlt-social-link svg {
    width: 16px;
    height: 16px;
  }
  
  .ftlt-social-links {
    gap: 0.6rem;
  }
  
  .ftlt-legal-link {
    font-size: 0.85rem;
  }
  
  .ftlt-copyright {
    font-size: 0.75rem;
  }
}

/* Ultra-small screens (ensure all 5 icons fit comfortably) */
@media (max-width: 320px) {
  .ftlt-social-link {
    width: 32px;
    height: 32px;
  }
  
  .ftlt-social-link svg {
    width: 14px;
    height: 14px;
  }
  
  .ftlt-social-links {
    gap: 0.4rem;
  }
}

/* Touch-friendly improvements for mobile */
@media (max-width: 768px) {
  .ftlt-social-link {
    min-height: 44px;
    min-width: 44px;
  }
  
  .ftlt-legal-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Smooth Scrolling Enhancement - FTLT Scoped */
@media (prefers-reduced-motion: no-preference) {
  .ftlt-footer-wrapper {
    scroll-behavior: smooth;
  }
}

/* Reduced motion for mobile users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .ftlt-social-link {
    animation: none;
  }
  
  .ftlt-footer-brand,
  .ftlt-footer-social,
  .ftlt-footer-legal {
    opacity: 1;
    transform: none;
  }
}

/* Focus States for Accessibility - FTLT Scoped */
.ftlt-social-link:focus,
.ftlt-legal-link:focus {
  outline: 2px solid var(--ftlt-text-accent);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --ftlt-text-secondary: #ffffff;
    --ftlt-border-color: #ffffff;
  }
}

/* Print Styles - FTLT Scoped */
@media print {
  .ftlt-footer {
    background: white !important;
    color: black !important;
  }
  
  .ftlt-social-link {
    display: none;
  }
}