/* ===================================================
 * Wallet Today - Shared Layout Styles
 * Header, Footer, Navigation, Mobile Menu
 * =================================================== */

/* CSS Variables */
:root {
  --primary-color: #170b77;
  --primary-dark: #0f0850;
  --secondary-color: #c1985e;
  --gold-color: #c1985e;
  --dark-bg: #0a0520;
  --dark-bg-2: #130a40;
  --text-light: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #1e293b;
  --border-color: rgba(255, 255, 255, 0.1);
  --card-bg: rgba(255, 255, 255, 0.03);
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background-color: #fff;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a:focus,
img:focus {
  outline: none;
}
/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 15px 0;
  transition: all 0.4s ease;
  margin-top: 40px;
}

.header.scrolled {
  background: rgba(10, 5, 32, 0.95);
  backdrop-filter: blur(20px);
  margin-top: 0;
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Sub-page header: always fixed dark */
.header.header-dark {
  background: rgba(10, 5, 32, 0.95);
  backdrop-filter: blur(20px);
  margin-top: 0;
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-brand img {
  height: 36px;
  transition: transform 0.3s ease;
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: width 0.3s ease;
}

.nav-menu a:hover {
  color: var(--secondary-color);
}

.nav-menu a:hover::after {
  width: 100%;
}

/* CTA Button */
.btn-get-started {
  background: var(--secondary-color);
  color: #fff !important;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-get-started:hover {
  background: #a88249;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(193, 152, 94, 0.4);
  color: #fff;
}

/* Language Selector */
.lang-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-light);
  font-size: 14px;
  cursor: pointer;
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 14px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lang-dropdown {
  background: var(--dark-bg-2);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 0;
  min-width: 120px;
}

.lang-dropdown .dropdown-item {
  color: var(--text-light);
  padding: 8px 16px;
  font-size: 14px;
  transition: background 0.2s ease;
}

.lang-dropdown .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

.lang-dropdown .dropdown-item.active {
  background: var(--secondary-color);
  color: #fff;
}

/* ===== Mobile Menu ===== */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--dark-bg);
  z-index: 9999;
  padding: 20px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.mobile-menu-close {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu-nav li {
  margin-bottom: 8px;
}

.mobile-menu-nav a {
  display: block;
  color: var(--text-light);
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  padding: 16px 20px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.mobile-menu-nav a:hover {
  background: var(--dark-bg-2);
  color: var(--secondary-color);
}

.mobile-menu-footer {
  margin-top: 20px;
}

.mobile-lang-selector {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-lang-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--dark-bg, rgba(26, 26, 46, 0.6));
  color: var(--text-light, #fff);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.2));
  border-radius: 10px;
  padding: 10px 40px 10px 16px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  width: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: all 0.3s ease;
}

.mobile-lang-select:focus {
  border-color: var(--primary-color, #6c5ce7);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

.mobile-lang-select option {
  background: #1a1a2e;
  color: #fff;
  padding: 8px;
}

.mobile-menu-cta {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
}

.mobile-menu-cta .btn-get-started {
  width: 100%;
  justify-content: center;
  padding: 10px 32px;
  font-size: 16px;
  margin-bottom: 15px;
}

/* ===== Footer ===== */
.footer {
  background: var(--dark-bg);
  padding: 80px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand img {
  height: 36px;
  margin-bottom: 20px;
}

.footer-description {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 42px;
  height: 42px;
  background: var(--dark-bg-2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--secondary-color);
  color: #fff;
  transform: translateY(-3px);
}

.footer-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 14px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

.footer-newsletter p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 16px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  background: var(--dark-bg-2);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-light);
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s ease;
}

.newsletter-form input:focus {
  border-color: var(--secondary-color);
}

.newsletter-form input::placeholder {
  color: var(--text-muted);
}

.newsletter-form button {
  padding: 14px 24px;
  background: var(--secondary-color);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  background: #a88249;
}

/* Footer Company Info */
.footer-company {
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  text-align: center;
}
.footer-company p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

/* Footer Bottom */
.footer-bottom {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
  color: var(--secondary-color);
}

/* ===== Shared Page Components ===== */
.page-hero {
  background: linear-gradient(
    135deg,
    var(--dark-bg) 0%,
    var(--primary-color) 100%
  );
  padding: 140px 0 60px;
  text-align: center;
}

.page-hero h1 {
  color: #fff;
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 16px;
}

.page-hero p {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

.page-hero .breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 14px;
}

.page-hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.page-hero .breadcrumb a:hover {
  color: var(--secondary-color);
}

.page-hero .breadcrumb span {
  color: rgba(255, 255, 255, 0.4);
}

.page-hero .breadcrumb .current {
  color: var(--secondary-color);
}

/* ===== Responsive - Layout ===== */
@media (max-width: 1199px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 991px) {
  .header {
    margin-top: 0;
    padding: 12px 0;
  }

  .nav-menu,
  .lang-selector,
  .header-right .btn-get-started {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-bottom-links {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .navbar-brand img {
    height: 28px;
    margin-left: 10px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .page-hero {
    padding: 120px 0 50px;
  }

  .page-hero h1 {
    font-size: 32px;
  }

  .page-hero p {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .page-hero h1 {
    font-size: 28px;
  }
}
