@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

/* 
 * Erzurum Ticaret Borsası Footer Styles
 * These styles control the appearance of the site footer
 */
.footer {
  background: linear-gradient(135deg, #004a80 0%, #002040 100%);
  color: white;
  padding: 60px 0 30px;
  position: relative;
  overflow: hidden;
  font-family: 'Montserrat', sans-serif;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(0, 74, 128, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 74, 128, 0.15) 1px, transparent 1px),
    radial-gradient(rgba(255, 255, 255, 0.07) 2px, transparent 2px);
  background-size: 50px 50px, 50px 50px, 100px 100px;
  background-position: -25px -25px, -25px -25px, -50px -50px;
  pointer-events: none;
  z-index: 1;
  animation: backgroundShift 120s linear infinite;
}

@keyframes backgroundShift {
  0% { background-position: -25px -25px, -25px -25px, -50px -50px; }
  100% { background-position: 500px 500px, 500px 500px, 500px 500px; }
}

.footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #e6ae3a, #f6d580, #e6ae3a, #d99b28);
  background-size: 300% 100%;
  animation: shimmer 6s infinite linear;
  z-index: 2;
  box-shadow: 0 0 15px rgba(230, 174, 58, 0.5);
}

@keyframes shimmer {
  0% { background-position: 0% 0; }
  100% { background-position: 300% 0; }
}

/* Particles */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  display: block;
  background-color: rgba(230, 174, 58, 0.2);
  pointer-events: none;
  border-radius: 50%;
}

/* Footer Container */
.footer-container {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

/* Footer Header */
.footer-header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.footer-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
  padding: 0 40px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  background: linear-gradient(to right, #e6ae3a, #fff, #e6ae3a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-title::before, .footer-title::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 2px;
  background: linear-gradient(to right, rgba(230, 174, 58, 0.5), #e6ae3a);
}

.footer-title::before {
  left: 0;
  transform: translateY(-50%);
}

.footer-title::after {
  right: 0;
  transform: translateY(-50%);
}

.footer-subtitle {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Footer Grid */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.footer-column {
  position: relative;
  transition: transform 0.3s ease;
}

.footer-column:hover {
  transform: translateY(-5px);
}

.footer-column::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, #e6ae3a, transparent);
  transition: width 0.4s ease;
}

.footer-column:hover::after {
  width: 100%;
}

.footer-column h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 12px;
  color: #e6ae3a;
  letter-spacing: 0.8px;
  display: inline-block;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(to right, #e6ae3a, rgba(230, 174, 58, 0.3));
  border-radius: 3px;
}

/* Footer Links */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-links a {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  padding-left: 10px;
  text-decoration: none;
  font-weight: 500;
}

.footer-links a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  background-color: #e6ae3a;
  border-radius: 50%;
  opacity: 0;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: white;
  transform: translateX(7px);
}

.footer-links a:hover::before {
  opacity: 1;
}

.footer-links a i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-right: 10px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  transition: all 0.4s ease;
  font-size: 13px;
}

.footer-links a:hover i {
  background-color: #e6ae3a;
  color: #003665;
  box-shadow: 0 0 12px rgba(230, 174, 58, 0.4);
  transform: rotate(360deg);
}

/* Social Links */
.social-links {
  display: flex;
  gap: 15px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  color: white;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.social-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #e6ae3a;
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1;
}

.social-links a:hover::before {
  transform: scale(1);
}

.social-links a i {
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
  font-size: 16px;
}

.social-links a:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-links a:hover i {
  color: #003665;
}

/* Copyright Section */
.copyright {
  margin-top: 50px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.copyright::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, transparent, #e6ae3a, transparent);
}

.copyright-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.copyright-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.copyright-text strong {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.developer-signature {
  display: flex;
  align-items: center;
  font-size: 13px;
  padding: 8px 15px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.developer-signature:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-3px);
}

.dev-text {
  color: rgba(255, 255, 255, 0.8);
}

.dev-link {
  color: #e6ae3a;
  font-weight: 600;
  margin-left: 5px;
  position: relative;
  transition: all 0.3s ease;
  text-decoration: none;
}

.dev-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #fff;
  transition: width 0.3s ease;
}

.dev-link:hover {
  color: white;
}

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

/* WhatsApp Button */
.whatsapp-btn {
  cursor: pointer;
  height: 50px;
  padding: 0 20px 0 15px;
  position: fixed !important;
  color: #fff;
  bottom: 25px;
  right: 25px;
  display: flex;
  align-items: center;
  z-index: 999999;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
  border-radius: 100px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: pulse 2.5s ease infinite;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3px;
}

.whatsapp-btn:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5);
}

.whatsapp-btn svg {
  margin-right: 10px;
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.2));
  transition: all 0.3s ease;
}

.whatsapp-btn:hover svg {
  transform: rotate(-10deg);
}

.whatsapp-btn .button-text {
  position: relative;
  overflow: hidden;
}

.whatsapp-btn .button-text:after {
  content: 'Bize Yazın';
  font-size: 15px;
  font-weight: 600;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ETB Logo Container */
.etb-logo-container {
  position: relative;
  width: 100%;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #004a80 0%, #002b4d 100%);
  cursor: pointer;
}

.etb-logo-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #ffffff;
  position: relative;
  z-index: 20;
  text-shadow: 0 2px 5px rgba(0,0,0,0.3);
  transition: all 0.4s ease;
  text-align: center;
  padding: 0 20px;
}

.etb-side-line {
  position: absolute;
  top: 50%;
  height: 3px;
  background: #e6ae3a;
  transform: translateY(-50%);
  z-index: 10;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.etb-left-line {
  left: 40px;
  width: 40px;
}

.etb-right-line {
  right: 40px;
  width: 40px;
}

.etb-canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 5;
}

.etb-logo-container:hover .etb-canvas-container {
  opacity: 1;
}

.etb-logo-container:hover .etb-logo-title {
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(230, 174, 58, 0.7);
  color: #e6ae3a;
}

.etb-logo-container:hover .etb-left-line {
  transform: translateY(-50%) translateX(10px);
  box-shadow: 0 0 10px rgba(230, 174, 58, 0.7);
}

.etb-logo-container:hover .etb-right-line {
  transform: translateY(-50%) translateX(-10px);
  box-shadow: 0 0 10px rgba(230, 174, 58, 0.7);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 35px 30px;
  }
  
  .footer {
    padding: 50px 0 25px;
  }
  
  .footer-title {
    font-size: 22px;
  }
}

@media (max-width: 767px) {
  .footer {
    padding: 40px 0 20px;
  }
  
  .footer-title {
    font-size: 18px;
    padding: 0 25px;
  }
  
  .footer-title::before, .footer-title::after {
    width: 20px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-column h3 {
    margin-bottom: 18px;
  }
  
  .copyright-content {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .developer-signature {
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 35px 0 15px;
  }
  
  .footer-title {
    font-size: 16px;
    letter-spacing: 1px;
  }
  
  .whatsapp-btn {
    height: 45px;
    width: 45px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    right: 15px;
    bottom: 15px;
  }
  
  .whatsapp-btn svg {
    margin-right: 0;
  }
  
  .whatsapp-btn .button-text:after {
    content: '';
  }
  
  .social-links {
    justify-content: center;
  }
}
