/* ===== METINGZ PROFESSIONAL FOOTER ===== */
/* ===== MODERN, RESPONSIVE & ATTRACTIVE DESIGN ===== */

/* ===== FOOTER VARIABLES ===== */
:root {
  /* Footer Colors - Professional Black Theme */
  --footer-bg: #000000;
  --footer-bg-gradient: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
  --footer-text: #ffffff;
  --footer-text-secondary: rgba(255, 255, 255, 0.8);
  --footer-text-muted: rgba(255, 255, 255, 0.6);
  
  /* Accent Colors for Vibrant Elements */
  --footer-accent-primary: #0ea5e9;
  --footer-accent-secondary: #ec4899;
  --footer-accent-tertiary: #facc15;
  
  /* Gradient Effects */
  --footer-gradient-primary: linear-gradient(135deg, var(--footer-accent-primary), var(--footer-accent-secondary));
  --footer-gradient-secondary: linear-gradient(135deg, var(--footer-accent-tertiary), var(--footer-accent-primary));
  --footer-gradient-glow: radial-gradient(circle at center, rgba(14, 165, 233, 0.3), transparent 70%);
  
  /* Spacing */
  --footer-spacing-xs: 0.5rem;
  --footer-spacing-sm: 1rem;
  --footer-spacing-md: 1.5rem;
  --footer-spacing-lg: 2rem;
  --footer-spacing-xl: 3rem;
  
  /* Typography */
  --footer-font-heading: 'Inter', system-ui, -apple-system, sans-serif;
  --footer-font-body: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Effects */
  --footer-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
  --footer-glow: 0 0 30px rgba(14, 165, 233, 0.3);
  --footer-border-radius: 12px;
  
  /* Animation */
  --footer-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== BASE FOOTER STYLES ===== */
.main-footer {
  position: relative;
  background: var(--footer-bg-gradient);
  color: var(--footer-text);
  padding: var(--footer-spacing-xl) 0 var(--footer-spacing-md);
  margin-top: auto;
  overflow: hidden;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animated Gradient Border Effect */
.main-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--footer-gradient-primary);
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
  z-index: 2;
}

/* Subtle Glow Effect */
.main-footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--footer-gradient-glow);
  opacity: 0.3;
  pointer-events: none;
  z-index: 1;
}

/* Floating Particles Animation */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

/* ===== FOOTER CONTENT STRUCTURE ===== */
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--footer-spacing-md);
  position: relative;
  z-index: 3;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--footer-spacing-xl);
  align-items: start;
  margin-bottom: var(--footer-spacing-xl);
}

/* ===== BRAND COLUMN ===== */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--footer-spacing-sm);
}

.footer-title {
  margin: 0;
  font-family: var(--footer-font-heading);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  position: relative;
}

.footer-title a {
  color: transparent;
  text-decoration: none;
  background: var(--footer-gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  transition: var(--footer-transition);
  position: relative;
  display: inline-block;
  padding: 0 0.5rem;
}

/* Animated Underline Effect */
.footer-title a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0.5rem;
  right: 0.5rem;
  height: 2px;
  background: var(--footer-gradient-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.footer-title a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.footer-title a:hover {
  transform: translateY(-2px);
  text-shadow: 0 0 30px rgba(14, 165, 233, 0.5);
}

/* Brand Tagline */
.footer-brand::after {
  content: 'Professional Meeting Solutions';
  font-size: 0.875rem;
  color: var(--footer-text-muted);
  font-weight: 400;
  margin-top: var(--footer-spacing-xs);
  letter-spacing: 0.05em;
  opacity: 0.8;
}

/* ===== SOCIAL COLUMN ===== */
.footer-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--footer-spacing-md);
}

.footer-social h4 {
  margin: 0;
  font-family: var(--footer-font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--footer-text);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: var(--footer-spacing-sm);
}

/* Animated Underline for Heading */
.footer-social h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--footer-gradient-primary);
  border-radius: 2px;
  animation: pulseLine 2s infinite;
}

.social-icons {
  display: flex;
  gap: var(--footer-spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: var(--footer-border-radius);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--footer-transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Animated Background Effect */
.social-icons a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--footer-gradient-primary);
  opacity: 0;
  transition: all 0.6s ease;
}

.social-icons a:hover::before {
  left: 100%;
  opacity: 0.2;
}

/* Icon Styling */
.social-icons a img {
  width: 24px;
  height: 24px;
  filter: invert(1);
  transition: var(--footer-transition);
  position: relative;
  z-index: 1;
}

/* Facebook Specific */
.social-icons a:nth-child(1):hover {
  background: rgba(59, 89, 152, 0.2);
  border-color: #3b5998;
  transform: translateY(-5px) scale(1.1);
}

.social-icons a:nth-child(1):hover img {
  filter: invert(0) sepia(1) saturate(5) hue-rotate(200deg);
}

/* Twitter Specific */
.social-icons a:nth-child(2):hover {
  background: rgba(29, 161, 242, 0.2);
  border-color: #1da1f2;
  transform: translateY(-5px) scale(1.1);
}

.social-icons a:nth-child(2):hover img {
  filter: invert(0) sepia(1) saturate(5) hue-rotate(180deg);
}

/* LinkedIn Specific */
.social-icons a:nth-child(3):hover {
  background: rgba(0, 119, 181, 0.2);
  border-color: #0077b5;
  transform: translateY(-5px) scale(1.1);
}

.social-icons a:nth-child(3):hover img {
  filter: invert(0) sepia(1) saturate(5) hue-rotate(160deg);
}

/* Icon Hover Effects */
.social-icons a:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.social-icons a:hover img {
  transform: scale(1.2) rotate(5deg);
}

/* Social Icons Label on Hover */
.social-icons a::after {
  content: attr(aria-label);
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: var(--footer-text);
  opacity: 0;
  transition: var(--footer-transition);
  white-space: nowrap;
  font-weight: 500;
}

.social-icons a:hover::after {
  opacity: 1;
  bottom: -25px;
}

/* ===== CONTACT COLUMN ===== */
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--footer-spacing-md);
}

.footer-contact h4 {
  margin: 0;
  font-family: var(--footer-font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--footer-text);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: var(--footer-spacing-sm);
}

/* Animated Underline for Contact Heading */
.footer-contact h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 3px;
  background: var(--footer-gradient-secondary);
  border-radius: 2px;
  animation: pulseLine 2s infinite;
}

.contact-link {
  color: var(--footer-text-secondary);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: var(--footer-transition);
  position: relative;
  padding: var(--footer-spacing-xs) 0;
  display: inline-flex;
  align-items: center;
  gap: var(--footer-spacing-xs);
}

/* Email Icon */
.contact-link::before {
  content: '✉️';
  font-size: 1.2rem;
  transition: var(--footer-transition);
}

.contact-link:hover::before {
  content: '📨';
  transform: scale(1.2);
}

.contact-link:hover {
  color: var(--footer-accent-primary);
  transform: translateX(-5px);
}

/* Animated Underline for Contact Link */
.contact-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--footer-gradient-primary);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.contact-link:hover::after {
  width: 100%;
}

/* ===== FOOTER BOTTOM ROW ===== */
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--footer-spacing-lg) var(--footer-spacing-md) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: var(--footer-spacing-md);
  align-items: center;
  position: relative;
  z-index: 3;
}

.footer-legal {
  display: flex;
  gap: var(--footer-spacing-md);
  align-items: center;
  flex-wrap: nowrap; /* UPDATED: Prevent wrapping */
  justify-content: center;
  width: 100%;
  overflow-x: auto; /* Allows horizontal scrolling if needed */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
  padding: var(--footer-spacing-xs) 0;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.footer-legal::-webkit-scrollbar {
  display: none;
}

.footer-legal a {
  color: var(--footer-text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--footer-transition);
  padding: var(--footer-spacing-xs) var(--footer-spacing-sm);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  white-space: nowrap; /* UPDATED: Prevent text wrapping */
  flex-shrink: 0; /* UPDATED: Prevent links from shrinking */
}

/* Legal Links Hover Effect */
.footer-legal a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--footer-gradient-primary);
  opacity: 0.1;
  transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-legal a:hover::before {
  left: 0;
}

.footer-legal a:hover {
  color: var(--footer-text);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.divider {
  color: var(--footer-text-muted);
  opacity: 0.3;
  font-size: 0.75rem;
  white-space: nowrap; /* UPDATED: Prevent divider wrapping */
  flex-shrink: 0; /* UPDATED: Prevent divider from shrinking */
}

.footer-copy {
  color: var(--footer-text-muted);
  font-size: 0.875rem;
  font-weight: 400;
  text-align: center;
  line-height: 1.6;
  max-width: 600px;
  position: relative;
  padding: var(--footer-spacing-sm);
}

/* Copyright Glow Effect */
.footer-copy::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 1px;
  background: var(--footer-gradient-primary);
  opacity: 0.3;
  filter: blur(2px);
}

/* ===== ANIMATIONS ===== */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes pulseLine {
  0%, 100% {
    width: 40px;
    opacity: 1;
  }
  50% {
    width: 60px;
    opacity: 0.8;
  }
}

@keyframes floatIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apply Floating Animation to Columns */
.footer-brand,
.footer-social,
.footer-contact {
  animation: floatIn 0.6s ease-out forwards;
  opacity: 0;
}

.footer-brand {
  animation-delay: 0.1s;
}

.footer-social {
  animation-delay: 0.2s;
}

.footer-contact {
  animation-delay: 0.3s;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--footer-spacing-lg);
  }
  
  .footer-contact {
    align-items: center;
    text-align: center;
    grid-column: 1 / -1;
  }
  
  .footer-contact h4::after {
    left: 50%;
    transform: translateX(-50%);
    right: auto;
  }
  
  .footer-title {
    font-size: 1.75rem;
  }
  
  .social-icons a {
    width: 45px;
    height: 45px;
  }
  
  /* UPDATED: Ensure legal links stay in single line */
  .footer-legal {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: var(--footer-spacing-xs) var(--footer-spacing-sm);
    gap: var(--footer-spacing-sm);
  }
  
  .footer-legal a {
    font-size: 0.8125rem;
    padding: var(--footer-spacing-xs) var(--footer-spacing-xs);
  }
}

/* Mobile (480px - 767px) */
@media (max-width: 767px) {
  .main-footer {
    padding: var(--footer-spacing-lg) 0 var(--footer-spacing-md);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--footer-spacing-xl);
    text-align: center;
  }
  
  .footer-brand,
  .footer-social,
  .footer-contact {
    align-items: center;
  }
  
  .footer-title {
    font-size: 1.5rem;
  }
  
  .footer-title a::after {
    left: 25%;
    right: 25%;
  }
  
  .footer-social h4::after,
  .footer-contact h4::after {
    left: 50%;
    transform: translateX(-50%);
    right: auto;
  }
  
  .social-icons {
    gap: var(--footer-spacing-sm);
  }
  
  .social-icons a {
    width: 40px;
    height: 40px;
  }
  
  .social-icons a img {
    width: 20px;
    height: 20px;
  }
  
  /* UPDATED: Mobile legal links in single line */
  .footer-legal {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: center;
    padding: var(--footer-spacing-xs) 0;
    gap: var(--footer-spacing-sm);
    width: 100%;
    max-width: 100vw;
  }
  
  .footer-legal a {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  .divider {
    font-size: 0.75rem;
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  .footer-bottom {
    padding-top: var(--footer-spacing-md);
    gap: var(--footer-spacing-md);
  }
  
  .footer-copy {
    font-size: 0.75rem;
    padding: var(--footer-spacing-xs);
  }
}

/* Small Mobile (below 480px) */
@media (max-width: 479px) {
  .main-footer {
    padding: var(--footer-spacing-md) 0;
  }
  
  .footer-content {
    padding: 0 var(--footer-spacing-sm);
  }
  
  .footer-grid {
    gap: var(--footer-spacing-lg);
  }
  
  .footer-title {
    font-size: 1.25rem;
  }
  
  .footer-social h4,
  .footer-contact h4 {
    font-size: 1rem;
  }
  
  .social-icons {
    gap: 0.75rem;
  }
  
  .social-icons a {
    width: 36px;
    height: 36px;
  }
  
  .social-icons a img {
    width: 18px;
    height: 18px;
  }
  
  .contact-link {
    font-size: 0.875rem;
  }
  
  /* UPDATED: Small mobile legal links optimization */
  .footer-legal {
    gap: 0.5rem;
    padding: 0.25rem 0;
    overflow-x: auto;
    justify-content: flex-start;
  }
  
  .footer-legal a {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    white-space: nowrap;
  }
  
  .divider {
    font-size: 0.7rem;
  }
  
  .footer-copy {
    font-size: 0.7rem;
    padding: 0.5rem;
  }
}

/* Extra Small Mobile (below 360px) */
@media (max-width: 359px) {
  /* UPDATED: Ensure legal links fit in very small screens */
  .footer-legal {
    gap: 0.4rem;
    padding: 0.2rem 0;
  }
  
  .footer-legal a {
    font-size: 0.65rem;
    padding: 0.15rem 0.3rem;
  }
  
  .divider {
    font-size: 0.65rem;
  }
  
  .footer-copy {
    font-size: 0.65rem;
    padding: 0.4rem;
  }
}

/* ===== DARK MODE ENHANCEMENTS ===== */
@media (prefers-color-scheme: dark) {
  .main-footer {
    background: linear-gradient(135deg, #0a0a0a 0%, #000000 50%, #0a0a0a 100%);
  }
  
  .social-icons a {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
  }
  
  .footer-legal a:hover {
    background: rgba(255, 255, 255, 0.1);
  }
  
  .footer-copy::before {
    background: var(--footer-gradient-secondary);
  }
}

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */
.footer-legal a:focus-visible,
.contact-link:focus-visible,
.social-icons a:focus-visible {
  outline: 2px solid var(--footer-accent-primary);
  outline-offset: 4px;
  background: rgba(14, 165, 233, 0.1);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .main-footer::before,
  .footer-title a::after,
  .footer-social h4::after,
  .footer-contact h4::after,
  .contact-link::after,
  .social-icons a::before,
  .footer-legal a::before {
    animation: none;
    transition: none;
  }
  
  .footer-brand,
  .footer-social,
  .footer-contact {
    animation: none;
    opacity: 1;
  }
  
  .social-icons a:hover {
    transform: none;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .main-footer {
    display: none;
  }
}

/* ===== HOVER EFFECTS FOR ENTIRE FOOTER ===== */
.main-footer:hover {
  box-shadow: var(--footer-shadow);
}

/* ===== PARTICLE EFFECT (Optional Enhancement) ===== */
.main-footer .particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--footer-accent-primary);
  border-radius: 50%;
  animation: float 6s infinite ease-in-out;
  pointer-events: none;
  opacity: 0.3;
  filter: blur(1px);
}

/* Create multiple particles */
.main-footer .particle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.main-footer .particle:nth-child(2) { top: 40%; left: 20%; animation-delay: 1s; }
.main-footer .particle:nth-child(3) { top: 60%; left: 30%; animation-delay: 2s; }
.main-footer .particle:nth-child(4) { top: 30%; right: 10%; animation-delay: 3s; }
.main-footer .particle:nth-child(5) { top: 50%; right: 20%; animation-delay: 4s; }

/* ===== LOADING ANIMATION ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.main-footer {
  animation: fadeInUp 0.8s ease-out;
}

/* ===== LEGAL LINKS SINGLE LINE FIXES ===== */
/* Ensure legal links never wrap and are always in single line */
.footer-legal-wrapper {
  width: 100%;
  overflow: hidden;
}

.footer-legal-scroll {
  display: flex;
  justify-content: center;
  width: max-content;
  margin: 0 auto;
}

/* For very small screens where content might overflow */
@media (max-width: 320px) {
  .footer-legal {
    justify-content: flex-start;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  .footer-legal a {
    font-size: 0.6rem;
    padding: 0.1rem 0.2rem;
  }
}

/* ===== END OF FOOTER STYLES ===== */