/* ==========
   TT Bootstrap Lite
   - Minimal utilities used on ttmatchanalyzer.com
   ========== */

:root {
  --tt-primary: #0d6efd;
  --tt-primary-hover: #0b5ed7;
  --tt-border: rgba(0, 0, 0, 0.08);
  --tt-radius: 0.75rem;
  --tt-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--tt-font);
  line-height: 1.5;
  color: #212529;
}

/* Typography utilities */
h1, h2, h3, h4, h5 {
  margin: 0 0 .5rem;
  font-weight: 600;
}

.display-6 {
  font-size: 1.75rem;
}

.fw-bold {
  font-weight: 700;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: #6c757d;
}

.small {
  font-size: 0.875rem;
}

/* Layout: container, grid, flex */
.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 1rem;
  padding-left: 1rem;
  max-width: 1140px;
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

.row {
  display: flex;
  flex-wrap: wrap;
}

.g-3 {
  row-gap: 1rem;
  column-gap: 1rem;
}

.justify-content-center {
  justify-content: center;
}

.d-flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.align-items-center {
  align-items: center;
}

.gap-2 {
  gap: 0.5rem;
}

/* Columns (mobile first) */
[class^="col-"], [class*=" col-"] {
  flex: 0 0 100%;
  max-width: 100%;
}

@media (min-width: 768px) {
  .col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (min-width: 992px) {
  .col-lg-9 {
    flex: 0 0 75%;
    max-width: 75%;
  }
}

@media (min-width: 1200px) {
  .col-xl-8 {
    flex: 0 0 66.6667%;
    max-width: 66.6667%;
  }
}

/* Spacing utilities */
.mb-1 { margin-bottom: .25rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }

.mt-1 { margin-top: .25rem; }
.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }

.py-3 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.pb-4 {
  padding-bottom: 1.5rem;
}

.p-4 {
  padding: 1.5rem;
}

.p-md-5 {
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .p-md-5 {
    padding: 3rem;
  }
}

.px-4 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Navbar */
.navbar {
  padding: .75rem 0;
}

.navbar-brand {
  font-size: 1rem;
  text-decoration: none;
  color: inherit;
}

.navbar-brand:hover {
  color: inherit;
}

.navbar-expand-lg {}
.bg-transparent {
  background: transparent;
}

/* Cards */
.card {
  background-color: #fff;
  border: 1px solid var(--tt-border);
  border-radius: var(--tt-radius);
}

.card-body {
  padding: 1.25rem;
}

.card-header {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid #e9ecef;
  border-radius: var(--tt-radius) var(--tt-radius) 0 0;
  background-color: #f8f9fa;
}

.border-0 {
  border: 0;
}

.rounded-4 {
  border-radius: 1rem;
}

.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(15, 23, 42, 0.08);
}

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border-radius: .375rem;
  background-color: transparent;
  color: inherit;
}

.btn-primary {
  color: #fff;
  background-color: var(--tt-primary);
  border-color: var(--tt-primary);
}

.btn-primary:hover {
  background-color: var(--tt-primary-hover);
  border-color: var(--tt-primary-hover);
}

.btn-lg {
  padding: 0.65rem 1.4rem;
  font-size: 1.05rem;
}

.rounded-pill {
  border-radius: 999px;
}

/* Forms */
.form-label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.form-control,
.form-select,
textarea {
  display: block;
  width: 100%;
  padding: 0.5rem .75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  outline: none;
}

.form-control:focus,
.form-select:focus,
textarea:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.25);
}

textarea {
  resize: vertical;
}

/* Background helpers */
.bg-white {
  background-color: #fff;
}

/* Custom site-specific styles from before */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at top, #f5f7ff 0, #e5ecff 40%, #f7f8fb 100%);
}

.hero-section {
  padding: 2rem 0 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .2rem .7rem;
  border-radius: 999px;
  background-color: rgba(13, 110, 253, 0.08);
  color: var(--tt-primary);
  font-size: .8rem;
  font-weight: 600;
}

.hero-title {
  font-weight: 700;
}

.hero-subtitle {
  max-width: 600px;
  margin-inline: auto;
}

.analyzer-card {
  border: none;
  border-radius: 1.25rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.13);
  backdrop-filter: blur(6px);
}

#analysisResult {
  white-space: pre-wrap;
}

footer {
  margin-top: auto;
  padding: 1.5rem 0;
  font-size: .85rem;
  color: #6c757d;
}

/* ===========================
   NAVIGATION BAR LAYOUT FIX
   =========================== */

.navbar {
  padding: 0.75rem 0;
}

/* New flex wrapper inside container */
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Left brand */
.navbar-brand {
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  color: #212529;
}

/* Right side links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Individual nav items */
.nav-link-item {
  text-decoration: none;
  color: #6c757d;
  font-size: 0.95rem;
}

.nav-link-item:hover {
  color: var(--tt-primary);
}
.promo-rating:hover {
  transform: translateY(-3px);
  transition: 0.2s ease;
}
.promo-rating:hover {
  transform: translateY(-3px);
  transition: 0.2s ease;
}


.brand-text {
  font-weight: 600;
  font-size: 1.1rem;
}
/* Global: keep any image from breaking mobile layout */
img {
  max-width: 100%;
  height: auto;
}

/* Navbar logo size */
.logo-img {
  height: 32px;       /* tweak 32–40px to taste */
  width: auto;
  border-radius: 50%;
}

/* Make sure nav layout is tidy */
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Mobile Navigation Fix */
@media (max-width: 768px) {

  .navbar {
    padding: 0.5rem 0;
  }

  .navbar-brand {
    font-size: 1rem;
    line-height: 1.1;
  }

  .logo-img {
    height: 28px;   /* smaller logo on mobile */
  }

  .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.2rem; /* vertical + horizontal spacing */
    text-align: left;
    margin-left: 0.5rem;
  }

  .nav-link-item {
    font-size: 0.95rem;
  }
}
