/* POSinity Footer - Professional Modern Design */

/* CSS Variables */
:root {
  --primary: #dc2626;
  --primary-dark: #b91c1c;
  --primary-light: #ef4444;
  --primary-glow: rgba(220, 38, 38, 0.3);
  --bg-dark: #0a0a0a;
  --bg-card: #111111;
  --bg-surface: #1a1a1a;
  --text-white: #ffffff;
  --text-gray: #a0a0a0;
  --text-light: #e0e0e0;
  --border: #2a2a2a;
  --border-light: #3a3a3a;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-light: 0 4px 16px rgba(0, 0, 0, 0.3);
  --glow: 0 0 20px rgba(220, 38, 38, 0.4);
  --radius: 16px;
  --radius-sm: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Footer styles */
.footer {
  background: var(--bg-card);
  color: var(--text-white);
  padding: 4rem 0 2rem;
  position: relative;
  border-top: 1px solid var(--border);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(108, 71, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(139, 107, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  animation: scan 3s ease-in-out infinite;
}

@keyframes scan {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-white);
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.footer-section h4::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 50%, transparent 100%);
  border-radius: 1px;
}

.footer-section h4::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary-glow);
}

/* Footer Brand Section */
.footer-brand {
  grid-column: 1 / 2;
}

.footer-logo {
  margin-bottom: 1.5rem;
}

.footer-logo img {
  height: 40px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 8px var(--primary-glow));
  transition: var(--transition);
}

.footer-logo:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 0 12px var(--primary-glow));
}

.footer-logo p {
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

/* Social Media Links */
.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-white);
  text-decoration: none;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(108, 71, 255, 0.2), transparent);
  transition: left 0.5s;
}

.social-link:hover::before {
  left: 100%;
}

.social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--glow);
}

/* Footer Links */
.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-gray);
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
  font-weight: 500;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(3px);
}

/* Newsletter Section */
.footer-newsletter {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.footer-newsletter::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.newsletter-content h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-white);
  background: linear-gradient(135deg, var(--text-white) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.newsletter-content p {
  color: var(--text-gray);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  max-width: 400px;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-white);
  font-size: 0.9rem;
  transition: var(--transition);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 71, 255, 0.1);
}

.newsletter-form input::placeholder {
  color: var(--text-gray);
}

.newsletter-form button {
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: var(--text-white);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.newsletter-form button:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--glow);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  position: relative;
}

.footer-bottom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright p {
  color: var(--text-gray);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.footer-copyright p:first-child {
  color: var(--text-white);
  font-weight: 500;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.footer-legal a {
  color: var(--text-gray);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-legal a:hover {
  color: var(--primary);
  transform: translateY(-1px);
}

.social-icon {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-light);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
}


/* Responsive Design */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
  }
  
  .footer-brand {
    grid-column: 1 / -1;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 3rem 0 1.5rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .footer-legal {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .footer-container {
    padding: 0 1.5rem;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 2rem 0 1rem;
  }
  
  .footer-container {
    padding: 0 1rem;
  }
  
  .footer-content {
    gap: 1.5rem;
  }
  
  .footer-section h4 {
    font-size: 1rem;
  }
  
  .footer-links a {
    font-size: 0.85rem;
  }
  
  .footer-legal {
    gap: 1rem;
  }
  
  .footer-legal a {
    font-size: 0.85rem;
  }
  
  .social-link {
    width: 40px;
    height: 40px;
  }
}