/* THAICON Community – Custom Styles */

:root {
  --thai-red: #df1020;
  --thai-blue: #061b3a;
  --thai-gold: #f6b735;
  --thai-soft: #fff8ec;
  --thai-dark: #152033;
}

body {
  background: linear-gradient(180deg, var(--thai-soft) 0%, #ffffff 260px);
  color: var(--thai-dark);
}

/* Navbar */
.thaicon-navbar {
  background: linear-gradient(90deg, var(--thai-blue), #102f63);
  box-shadow: 0 8px 25px rgba(6, 27, 58, .18);
}

.navbar-brand {
  font-size: 1.25rem;
  letter-spacing: .02em;
}

.navbar-brand span {
  letter-spacing: .08em;
  font-size: 1.35rem;
  color: #fff;
}

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 4px;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}

.thaicon-navbar .nav-link {
  color: rgba(255,255,255,.88);
  font-weight: 500;
  border-radius: 999px;
  padding: .45rem .85rem;
}

.thaicon-navbar .nav-link:hover,
.thaicon-navbar .nav-link:focus {
  color: #fff;
  background: rgba(255,255,255,.12);
}

.thaicon-btn,
.footer-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--thai-red), #ff384a);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: .55rem 1.15rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(223,16,32,.28);
  transition: transform .15s, box-shadow .15s;
}

.thaicon-btn:hover,
.footer-btn:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(223,16,32,.36);
}

.nav-logout {
  color: #ffd8d8 !important;
}

/* Cards */
.card-hover {
  transition: box-shadow .15s, transform .15s;
}

.card-hover:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.12) !important;
  transform: translateY(-2px);
}

/* Leaflet popup tweaks */
.leaflet-popup-content {
  margin: 12px 14px;
}

.leaflet-popup-content a {
  color: var(--thai-red);
  text-decoration: none;
}

.leaflet-popup-content a:hover {
  text-decoration: underline;
}

/* Suggestions dropdown */
#stadtSuggestions {
  z-index: 1000;
}

/* Responsive map */
#map {
  width: 100%;
}

/* Badge font-size override for member status badges */
.badge.fs-6 {
  font-size: .85rem !important;
}

/* Footer */
.thaicon-footer {
  margin-top: 80px;
  padding: 45px 0 30px;
  background: linear-gradient(135deg, var(--thai-blue), #102f63);
  color: rgba(255,255,255,.82);
  position: relative;
  overflow: hidden;
}

.thaicon-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(246,183,53,.55) 0%, rgba(246,183,53,.32) 18%, transparent 42%),
    radial-gradient(circle at 85% 40%, rgba(223,16,32,.24), transparent 32%);
}

.thaicon-footer::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  left: 9%;
  top: -70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,210,80,.75) 0%, rgba(246,183,53,.38) 42%, transparent 70%);
  filter: blur(2px);
}

.footer-card {
  position: relative;
  z-index: 1;
  padding: 25px;
  border-radius: 28px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
}

.footer-brand {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: .12em;
  color: #fff;
  margin-bottom: 8px;
}

.thaicon-footer p {
  margin-bottom: .75rem;
}

.thaicon-footer a:not(.footer-btn) {
  color: var(--thai-gold);
  font-weight: 700;
  text-decoration: none;
}

.thaicon-footer .footer-links {
  border-top: 1px solid rgba(255,255,255,.18);
}

.thaicon-footer .footer-links a {
  color: rgba(255,255,255,.78) !important;
}

.thaicon-footer .footer-links a:hover {
  color: #fff !important;
}

/* Mobile Optimierung */
@media (max-width: 991.98px) {
  .thaicon-navbar {
    padding: .55rem 0;
  }

  .navbar-brand span {
    font-size: 1.05rem;
    letter-spacing: .05em;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .thaicon-navbar .navbar-collapse {
    margin-top: .75rem;
    padding: .75rem;
    border-radius: 18px;
    background: rgba(255,255,255,.08);
  }

  .thaicon-navbar .nav-link {
    display: block;
    padding: .7rem .9rem;
    border-radius: 14px;
  }

  .thaicon-btn {
    width: 100%;
    text-align: center;
    margin-top: .5rem;
  }
}

@media (max-width: 575.98px) {
  body {
    background: linear-gradient(180deg, var(--thai-soft) 0%, #ffffff 190px);
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .thaicon-footer {
    margin-top: 45px;
    padding: 32px 0 22px;
  }

  .footer-card {
    padding: 22px 16px;
    border-radius: 22px;
  }

  .footer-brand {
    font-size: 1.25rem;
    letter-spacing: .08em;
  }

  .thaicon-footer p {
    font-size: .9rem;
    line-height: 1.45;
  }

  .footer-btn {
    width: 100%;
    max-width: 260px;
    padding: .65rem 1rem;
  }

  .footer-links {
    flex-direction: column;
    gap: .55rem !important;
  }

  .thaicon-footer::after {
    width: 150px;
    height: 150px;
    left: -25px;
    top: -45px;
  }

  .thaicon-footer::before {
    background:
      radial-gradient(circle at 8% 10%, rgba(246,183,53,.50) 0%, rgba(246,183,53,.25) 22%, transparent 45%),
      radial-gradient(circle at 95% 60%, rgba(223,16,32,.20), transparent 34%);
  }

  .card-body {
    padding: 1rem;
  }

  #pickMap {
    height: 240px !important;
  }
}

.thaicon-map {
  height: 75vh;
  min-height: 500px;
  width: 100%;
  display: block;
}

@media (max-width: 575.98px) {
  .thaicon-map {
    height: 58vh;
    min-height: 320px;
  }
}


/* Eigenes Burger-Menü */
.thaicon-toggler {
  display: none;
  width: 44px;
  height: 40px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 12px;
  padding: 8px 9px;
  background: rgba(255,255,255,.10);
}

.thaicon-toggler span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 999px;
  margin: 5px 0;
}

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

@media (max-width: 991.98px) {
  .thaicon-toggler {
    display: block;
  }

  .thaicon-navbar .navbar-collapse {
    margin-top: .85rem;
    padding: .85rem;
    border-radius: 18px;
    background: rgba(6, 27, 58, .96);
  }

  .thaicon-navbar .navbar-nav {
    align-items: stretch !important;
  }

  .thaicon-navbar .nav-link {
    color: #fff !important;
  }
}