/**
 * Site-wide shared styles — header, footer, base, floating elements.
 * Hem index.php hem sss.php (ve diğer sayfalar) tarafından <link> ile yüklenir.
 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  background: #F8F7FA;
  color: #0C003D;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  font-family: 'Poppins', sans-serif;
  padding-top: 85px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  background: #ffffffc2;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.header-hidden {
  transform: translateY(-100%);
}

.header-nav {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
}

.header-logo img {
  width: 120px;
}

.header-center {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.header-center a {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #0C003D;
  transition: background 0.2s;
}

.header-center a:hover {
  background: #f3f4f6;
}

.header-center .lgs-badge {
  background: #5c1a58;
  color: #fff;
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.header-center .lgs-badge:hover {
  opacity: 0.9;
  background: #fff;
  color: #5c1a58;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-right .login-link {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: #0C003D;
  transition: opacity 0.2s;
}

.header-right .login-link:hover {
  opacity: 0.8;
}

.header-right .buy-btn {
  background: #5c1a58;
  color: #fff;
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  transition: opacity 0.2s;
}

.header-right .buy-btn:hover {
  opacity: 0.9;
}

/* Bootstrap navbar toggler override */
.navbar-toggler {
  border: none;
  padding: 0.5rem;
  border-radius: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  width: 24px;
  height: 24px;
}

.navbar-collapse {
  position: absolute;
  top: 85px;
  left: 0;
  right: 0;
  background: #f8f7fa;
  border-radius: 0 0 1.5rem 1.5rem;
  padding: 0;
  z-index: 1050;
}

.navbar-collapse.collapsing,
.navbar-collapse.show {
  padding: 1rem 1.5rem 1.5rem;
}

.navbar-collapse .nav-link {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #0C003D;
  transition: background 0.2s;
}

.navbar-collapse .nav-link:hover {
  background: #f3f4f6;
}

.navbar-collapse .lgs-badge {
  display: inline-block;
  width: fit-content;
  background: #C2574A;
  color: #fff;
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.navbar-collapse .mobile-divider {
  height: 1px;
  background: rgba(12, 0, 61, 0.08);
  margin: 0.5rem 0;
}

.navbar-collapse .mobile-buy-btn {
  display: block;
  text-align: center;
  background: #5c1a58;
  color: #fff;
  border-radius: 9999px;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-top: 0.25rem;
  transition: background 0.2s;
}

.navbar-collapse .mobile-buy-btn:hover {
  background: #5A37E6;
}

@media (min-width: 768px) {
  .navbar-collapse {
    display: none !important;
  }

  .navbar-toggler {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .header-center {
    display: none;
  }

  .header-nav {
    padding: 1rem 1.25rem;
  }

  .navbar-toggler {
    order: 1;
  }

  .header-logo {
    order: 2;
    flex: 1;
    display: flex;
    margin-left: 10px;
  }

  .header-logo img {
    width: 110px;
  }

  .header-right {
    order: 3;
    display: flex;
    gap: 0;
  }

  .header-right .login-link {
    display: none;
  }

  .header-right .buy-btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }

  .site-header {
    overflow: visible;
  }
}

/* ===== FOOTER ===== */
.site-footer {
  display: flex;
  width: 100%;
  justify-content: center;
  padding: 0 1% 0.75rem;
}

.footer-card {
  position: relative;
  width: 98%;
  max-width: 3000px;
  overflow: hidden;
  border-radius: 1.5rem;
  background: #5c1a58;
  padding: 4rem 1.5rem 1rem;
}

@media (min-width: 640px) {
  .footer-card {
    padding: 4rem 3rem 1rem;
  }
}

@media (min-width: 768px) {
  .footer-card {
    padding: 4rem 6rem 1rem;
  }
}

.footer-heading {
  margin-bottom: 3rem;
  text-align: center;
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.footer-grid {
  max-width: 48rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-col h3 {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  line-height: 2;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-apps {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-apps p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-apps .app-btns {
  display: flex;
  gap: 0.75rem;
}

.footer-apps .app-btns img {
  height: 40px;
  width: auto;
}

.footer-social {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-social p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-social .social-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #fff;
}

.footer-social .social-icons a {
  transition: opacity 0.2s;
}

.footer-social .social-icons a:hover {
  opacity: 0.7;
}

.footer-social .social-icons svg {
  width: 24px;
  height: 24px;
}

.footer-bottom {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
}

.footer-bottom .owl-icon {
  width: 32px;
  height: 32px;
}

.footer-bottom .payment img {
  max-width: 300px;
  width: auto;
  height: auto;
}

.footer-bottom .copyright {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ===== FLOATING ELEMENTS ===== */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  background: #25D366;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}
