/* ==========================================================================
   burc.lol — Modern Cosmic UI Enhancement Stylesheet
   ========================================================================== */

:root {
  --brand-hue: #7c3aed;
  --brand-primary: #7c3aed;
  --brand-primary-hover: #6d28d9;
  --brand-primary-active: #5b21b6;
  --brand-on-dark: #a78bfa;
  --cosmic-gradient: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  --cosmic-gradient-subtle: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(236, 72, 153, 0.08) 100%);
  --cosmic-shadow: 0 10px 30px rgba(124, 58, 237, 0.12);
  --cosmic-shadow-lg: 0 18px 45px rgba(124, 58, 237, 0.18);
  --surface-card: #ffffff;
  --surface-border: #e6ebf4;
}

[data-bs-theme="dark"] {
  --brand-primary: #a78bfa;
  --brand-primary-hover: #c4b5fd;
  --surface-card: #161a24;
  --surface-border: #262c3b;
  --cosmic-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  --cosmic-shadow-lg: 0 18px 45px rgba(0, 0, 0, 0.55);
}

/* ==========================================================================
   1. Global Brand & Typography Accents
   ========================================================================== */
.text-primary {
  color: var(--brand-primary, #7c3aed) !important;
}

.bg-primary {
  background-color: var(--brand-primary, #7c3aed) !important;
}

.cosmic-gradient-text {
  background: var(--cosmic-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.cosmic-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.2);
  color: var(--brand-primary, #7c3aed);
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.08);
}

[data-bs-theme="dark"] .cosmic-pill {
  background: rgba(167, 139, 250, 0.12);
  border-color: rgba(167, 139, 250, 0.25);
  color: #c4b5fd;
}

/* ==========================================================================
   2. Modern Glassmorphism Navbar
   ========================================================================== */
#navbar.navbar {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.88) !important;
  border-bottom: 1px solid rgba(124, 58, 237, 0.08);
  transition: all 0.3s ease;
}

#navbar.navbar.nav-sticky {
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 4px 20px rgba(24, 59, 86, 0.07) !important;
}

body[data-bs-theme="dark"] #navbar.navbar {
  background: rgba(15, 17, 24, 0.88) !important;
  border-bottom: 1px solid rgba(124, 58, 237, 0.15);
}

body[data-bs-theme="dark"] #navbar.navbar.nav-sticky {
  background: rgba(15, 17, 24, 0.96) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4) !important;
}

#navbar .navbar-brand {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  line-height: normal !important;
  max-width: none !important;
  margin-right: 0.75rem !important;
}

#navbar .navbar-brand .logo-brand-icon {
  background: var(--cosmic-gradient);
  box-shadow: 0 0 16px rgba(124, 58, 237, 0.45);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

#navbar .navbar-brand .logo-brand-text {
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

#navbar .navbar-brand:hover .logo-brand-icon {
  transform: rotate(15deg) scale(1.08);
}

@media (min-width: 992px) {
  #navbar .navbar-collapse {
    display: flex !important;
    flex-basis: auto !important;
    flex-grow: 1 !important;
    align-items: center !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  #navbar .navbar-nav {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
  }
  #navbar .header-toggler {
    display: none !important;
  }
}

@media (max-width: 991.98px) {
  #navbar .navbar-collapse {
    display: none !important;
  }
  #navbar .header-toggler {
    display: none !important;
  }
}

#navbar .navbar-nav .nav-link {
  font-weight: 600;
  transition: color 0.2s ease;
  position: relative;
}

#navbar .navbar-nav .nav-link:hover,
#navbar .navbar-nav .nav-link.active {
  color: var(--brand-primary, #7c3aed) !important;
}

#navbar .navbar-nav .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0.4rem;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--brand-primary, #7c3aed);
}

/* ==========================================================================
   3. Enhanced Hero Section
   ========================================================================== */
.home-hero {
  position: relative;
  background: #ffffff;
  padding: calc(6.5rem - var(--nav-offset)) 0 3.5rem;
  overflow: hidden;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 45% at 50% -10%, rgba(124, 58, 237, 0.14), transparent 65%),
    radial-gradient(ellipse 45% 35% at 85% 85%, rgba(236, 72, 153, 0.08), transparent 55%),
    radial-gradient(ellipse 35% 35% at 15% 75%, rgba(6, 182, 212, 0.06), transparent 50%);
  pointer-events: none;
}

body[data-bs-theme="dark"] .home-hero {
  background: #0f1118;
}

body[data-bs-theme="dark"] .home-hero::before {
  background:
    radial-gradient(ellipse 70% 50% at 50% -15%, rgba(124, 58, 237, 0.22), transparent 70%),
    radial-gradient(ellipse 45% 40% at 85% 80%, rgba(236, 72, 153, 0.12), transparent 60%),
    radial-gradient(ellipse 35% 35% at 15% 70%, rgba(6, 182, 212, 0.09), transparent 55%);
}

.home-hero__title {
  font-size: clamp(2rem, 4.5vw, 3.15rem);
  letter-spacing: -0.025em;
  line-height: 1.22;
}

.home-hero__search-box {
  border-radius: 999px;
  border: 1px solid rgba(124, 58, 237, 0.15) !important;
  box-shadow: 0 12px 36px rgba(124, 58, 237, 0.08) !important;
  transition: all 0.25s ease;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
}

.home-hero__search-box:focus-within {
  border-color: rgba(124, 58, 237, 0.45) !important;
  box-shadow: 0 16px 42px rgba(124, 58, 237, 0.18) !important;
}

body[data-bs-theme="dark"] .home-hero__search-box {
  background: rgba(23, 27, 36, 0.92);
  border-color: rgba(167, 139, 250, 0.2) !important;
}

body[data-bs-theme="dark"] .home-hero__search-box:focus-within {
  border-color: rgba(167, 139, 250, 0.5) !important;
  box-shadow: 0 16px 42px rgba(124, 58, 237, 0.25) !important;
}

.home-hero__search-btn,
.btn-primary,
main .btn-primary {
  background: var(--cosmic-gradient) !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3) !important;
  color: #fff !important;
  font-weight: 700;
  transition: all 0.25s ease;
}

.home-hero__search-btn:hover,
.home-hero__search-btn:focus,
.btn-primary:hover,
.btn-primary:focus,
main .btn-primary:hover,
main .btn-primary:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(124, 58, 237, 0.45) !important;
  filter: brightness(1.06);
}

/* ==========================================================================
   4. 12 Burç Hızlı Erişim Şeridi (Zodiac Strip)
   ========================================================================== */
.zodiac-strip-wrap {
  margin-top: 2.25rem;
}

.zodiac-strip {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.5rem 0.25rem 0.75rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  justify-content: flex-start;
}

@media (min-width: 992px) {
  .zodiac-strip {
    justify-content: center;
    flex-wrap: wrap;
  }
}

.zodiac-strip::-webkit-scrollbar {
  height: 4px;
}
.zodiac-strip::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.25);
  border-radius: 999px;
}

.zodiac-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: 999px;
  color: #1e293b;
  text-decoration: none !important;
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(24, 59, 86, 0.03);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.zodiac-chip:hover {
  background: #ffffff;
  border-color: rgba(124, 58, 237, 0.35);
  color: var(--brand-primary, #7c3aed);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.14);
}

.zodiac-chip__glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 13px;
  line-height: 1;
  background: rgba(124, 58, 237, 0.1);
  color: var(--brand-primary, #7c3aed);
}

.zodiac-chip--fire .zodiac-chip__glyph { background: rgba(239, 68, 68, 0.12); color: #ef4444; }
.zodiac-chip--earth .zodiac-chip__glyph { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.zodiac-chip--air .zodiac-chip__glyph { background: rgba(6, 182, 212, 0.12); color: #06b6d4; }
.zodiac-chip--water .zodiac-chip__glyph { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }

body[data-bs-theme="dark"] .zodiac-chip {
  background: rgba(22, 26, 36, 0.85);
  border-color: rgba(167, 139, 250, 0.16);
  color: #e2e8f0;
}

body[data-bs-theme="dark"] .zodiac-chip:hover {
  background: #1e2433;
  border-color: rgba(167, 139, 250, 0.45);
  color: #c4b5fd;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

/* ==========================================================================
   5. Category Cards Enhancement
   ========================================================================== */
.home-cat {
  border-radius: 18px !important;
  border: 1px solid var(--surface-border) !important;
  background: var(--surface-card) !important;
  box-shadow: 0 6px 18px rgba(24, 59, 86, 0.04) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.home-cat:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(124, 58, 237, 0.28) !important;
  box-shadow: var(--cosmic-shadow-lg) !important;
}

.home-cat__icon {
  background: rgba(124, 58, 237, 0.1) !important;
  color: var(--brand-primary, #7c3aed) !important;
  border-radius: 14px !important;
  transition: transform 0.25s ease;
}

.home-cat:hover .home-cat__icon {
  transform: scale(1.1) rotate(4deg);
  background: var(--cosmic-gradient) !important;
  color: #ffffff !important;
}

/* ==========================================================================
   6. Tool Cards Enhancement
   ========================================================================== */
.home-tool {
  border-radius: 20px !important;
  border: 1px solid var(--surface-border) !important;
  background: var(--surface-card) !important;
  box-shadow: 0 8px 24px rgba(24, 59, 86, 0.04) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.home-tool:hover {
  transform: translateY(-5px) !important;
  border-color: rgba(124, 58, 237, 0.3) !important;
  box-shadow: var(--cosmic-shadow-lg) !important;
}

.home-tool__icon {
  background: var(--cosmic-gradient-subtle) !important;
  color: var(--brand-primary, #7c3aed) !important;
  border-radius: 14px !important;
  border: 1px solid rgba(124, 58, 237, 0.12);
  transition: all 0.25s ease;
}

.home-tool:hover .home-tool__icon {
  transform: scale(1.08);
  background: var(--cosmic-gradient) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.25);
}

.home-tool__badge {
  background: rgba(124, 58, 237, 0.08) !important;
  color: var(--brand-primary, #7c3aed) !important;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem !important;
  font-weight: 700;
  border: 1px solid rgba(124, 58, 237, 0.15);
}

.home-tool__cta {
  border-radius: 12px !important;
  padding: 0.45rem 1.15rem !important;
}

/* ==========================================================================
   7. Form Inputs & Calculation Cards (Tool Pages)
   ========================================================================== */
.calc-card {
  border-radius: 20px !important;
  border: 1px solid var(--surface-border) !important;
  background: var(--surface-card) !important;
  box-shadow: var(--cosmic-shadow) !important;
}

.calc-card__badge {
  background: var(--cosmic-gradient) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(124, 58, 237, 0.45) !important;
  box-shadow: 0 0 0 3.5px rgba(124, 58, 237, 0.15) !important;
}

.btn-calc {
  background: var(--cosmic-gradient) !important;
  border: none !important;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.3) !important;
  border-radius: 12px !important;
  transition: all 0.25s ease !important;
}

.btn-calc:hover,
.btn-calc:focus {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(124, 58, 237, 0.45) !important;
  filter: brightness(1.08);
}

/* Tool Article / Info Section */
.tool-article {
  border-radius: 20px !important;
  border: 1px solid var(--surface-border) !important;
  box-shadow: 0 6px 20px rgba(24, 59, 86, 0.04) !important;
}

.tool-article::before {
  background: var(--cosmic-gradient) !important;
  width: 4px !important;
}

/* ==========================================================================
   8. Home Blog Section Showcase
   ========================================================================== */
.home-blog-section {
  padding: 4.5rem 0;
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.02) 0%, rgba(124, 58, 237, 0.06) 100%);
  border-top: 1px solid rgba(124, 58, 237, 0.08);
}

body[data-bs-theme="dark"] .home-blog-section {
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.03) 0%, rgba(124, 58, 237, 0.08) 100%);
  border-top-color: rgba(124, 58, 237, 0.12);
}

.home-blog-card {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--surface-border);
  background: var(--surface-card);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-blog-card:hover {
  transform: translateY(-5px);
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: var(--cosmic-shadow-lg);
}

.home-blog-card__thumb {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  position: relative;
}

/* ==========================================================================
   9. Refined Footer
   ========================================================================== */
.footer.site-footer {
  background: linear-gradient(180deg, #10121a 0%, #0d0f15 100%) !important;
  border-top: 1px solid rgba(124, 58, 237, 0.2) !important;
  position: relative;
}

.footer.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--cosmic-gradient);
}
