/* GowLife — Components: Nav, Footer, Cards, Buttons, Inputs, Marquee */

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--brand);
  color: #000;
  padding: 14px 28px;
  border-radius: var(--radius-xs);
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px var(--brand-glow);
  text-decoration: none;
}
.btn:hover {
  transform: translateY(-2px);
  background: #7BBFB8;
  box-shadow: 0 8px 25px var(--brand-glow);
  color: #000;
}
.btn:active { transform: translateY(0); }
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}
.btn-large {
  padding: 18px 40px;
  font-size: 1.1rem;
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--ink);
  box-shadow: none;
}
.btn-outline:hover {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
}
.btn-accent {
  background: var(--accent);
  box-shadow: 0 4px 15px var(--accent-glow);
}
.btn-accent:hover {
  background: #F0A85E;
  box-shadow: 0 8px 25px var(--accent-glow);
}

/* Theme toggle button */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.theme-toggle:hover {
  border-color: var(--border-hover);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}

.theme-toggle .sun-icon { display: none; }
.theme-toggle .moon-icon { display: block; }

:root.light .theme-toggle .sun-icon { display: block; }
:root.light .theme-toggle .moon-icon { display: none; }

/* ========== HEADER / NAV ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-h);
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-logo {
  height: 36px;
  width: auto;
  filter: brightness(100);
}
:root.light .nav-logo {
  filter: none;
}
.nav-links {
  display: none;
  gap: 32px;
}
.nav-links a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
  text-decoration: none;
  position: relative;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #fff;
}
.nav-links a[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand);
  border-radius: 1px;
}
.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.nav-cta {
  padding: 10px 20px;
  font-size: 0.85rem;
}

/* Mobile menu button */
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 1.2rem;
  cursor: pointer;
  transition: border-color 0.2s;
}
.menu-toggle:hover { border-color: var(--border-hover); }

/* Mobile menu panel */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 5, 5, 0.98);
  backdrop-filter: blur(20px);
  z-index: 99;
  padding: 40px 24px;
}
.mobile-menu.open { display: flex; flex-direction: column; gap: 8px; }
.mobile-menu a {
  display: block;
  padding: 16px 0;
  color: var(--ink);
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.mobile-menu a:hover { color: var(--brand); }
.mobile-menu .btn {
  margin-top: 24px;
  text-align: center;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .menu-toggle { display: none; }
}

/* ========== FOOTER ========== */
.site-footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
  margin-top: 80px;
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand p { color: var(--muted); max-width: 35ch; font-size: 0.9rem; }
.footer-links h4 {
  color: var(--ink);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.footer-links a {
  display: block;
  color: var(--muted);
  padding: 4px 0;
  font-size: 0.9rem;
  text-decoration: none;
}
.footer-links a:hover { color: var(--brand); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 0.85rem;
}

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

/* ========== CARDS ========== */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}
.card-flat {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.card-highlight {
  border-color: var(--brand);
  box-shadow: 0 0 20px var(--brand-glow);
}

/* ========== INPUTS ========== */
.input {
  width: 100%;
  background: #1a1a1a;
  border: 1px solid var(--border);
  color: #fff;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-glow);
}
.input:focus:invalid {
  border-color: var(--accent);
  box-shadow: 0 0 5px var(--accent-glow);
}
.input:not(:placeholder-shown):valid {
  border-color: var(--brand);
}
.input-big {
  font-size: 1.5rem;
  text-align: center;
  width: 120px;
  padding: 14px;
  background: #1a1a1a;
  border: 1px solid var(--border);
  color: #fff;
  border-radius: var(--radius-sm);
}
select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%23a3a3a3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

label.label-big {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}

/* ========== CHECKBOX ========== */
.checkbox-label {
  display: flex;
  gap: 12px;
  cursor: pointer;
  align-items: flex-start;
  font-size: 0.95rem;
}
.checkbox-label input[type="checkbox"] {
  accent-color: var(--brand);
  transform: scale(1.3);
  margin-top: 3px;
  flex-shrink: 0;
}

/* ========== PARTNERS MARQUEE ========== */
.marquee-wrap {
  overflow: hidden;
  padding: 24px 0;
  background: #fff;
  border-radius: var(--radius);
}
.marquee-track {
  display: flex;
  gap: 60px;
  align-items: center;
  animation: marquee 25s linear infinite;
  width: max-content;
}
.marquee-track img {
  height: 45px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.5;
  transition: all 0.3s;
}
.marquee-track img:hover {
  filter: grayscale(0);
  opacity: 1;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========== TICKS LIST ========== */
.ticks { list-style: none; padding: 0; margin-top: 16px; }
.ticks li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 8px;
  height: 8px;
  background: var(--brand);
  border-radius: 50%;
}

/* ========== STATS ========== */
.stat {
  font-family: var(--font-title);
  font-size: 3.5rem;
  line-height: 1;
  font-weight: 800;
  display: block;
  color: var(--brand);
}
.mini-bars {
  background: #222;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 10px;
}
.bar {
  height: 6px;
  background: var(--brand);
  border-radius: 10px;
  width: var(--w);
  transition: width 1s ease;
}

/* ========== TABLES ========== */
.table-styled {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.table-styled th {
  background: rgba(91, 168, 160, 0.1);
  color: var(--brand);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.table-styled td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--muted);
}
.table-styled tr:last-child td { border-bottom: none; }
.table-styled tbody tr {
  transition: background 0.2s;
}
.table-styled tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}
