/* SkiparHub v2 — Clean Reset "Nautical LinkedIn" */
:root {
  --navy: #0C2340;
  --navy-mid: #1A3A5C;
  --ocean: #1A5F8A;
  --cream: #F5F0E8;
  --gold: #C9A84C;
  --white: #FFFFFF;
  --text-primary: #0C2340;
  --text-muted: #555555;
  --border: #D0CAC0;
  --border-light: #EAE6E0;
  --success: #1A7A4A;
  --success-bg: #E8F5EE;
  --warning: #D4860A;
  --warning-bg: #FEF3E2;
  --gray-100: #F7F5F2;
  --sky: #4A9CC7;
  --sky-light: #D0E8F5;
  --radius: 14px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}
h1, h2, h3, h4, .font-heading {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
}

/* ---- NAVBAR ---- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--navy);
  padding: 0 40px;
  height: 70px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 24px; font-weight: 700;
  color: #fff; text-decoration: none;
}
.nav-logo span { color: var(--gold); font-style: italic; }
.nav-links { display: flex; align-items: center; gap: 16px; }
.nav-link {
  color: rgba(255,255,255,0.85);
  font-size: 14px; font-weight: 500;
  text-decoration: none; transition: color 0.3s;
}
.nav-link:hover { color: #fff; }
.nav-cta {
  background: var(--gold); color: var(--navy);
  font-size: 14px; font-weight: 700;
  padding: 8px 18px; border-radius: 8px;
  text-decoration: none; transition: all .18s;
}
.nav-cta:hover { background: #F0D98A; }

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
  background: none; border: none;
}
.nav-hamburger span {
  width: 24px; height: 2px; background: #fff;
  border-radius: 2px; display: block; transition: all .3s;
}
.nav-mobile {
  display: none; position: fixed; top: 70px; left: 0; right: 0;
  background: var(--navy); padding: 20px; z-index: 999;
  flex-direction: column; gap: 4px;
  border-top: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 12px 16px; border-radius: 8px; font-size: 15px;
  color: rgba(255,255,255,0.8); text-decoration: none; transition: all .15s;
}
.nav-mobile a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.nav-mobile .nav-cta {
  background: var(--gold); color: var(--navy);
  font-weight: 700; text-align: center; margin-top: 8px;
}

/* ---- HERO ---- */
.hero {
  position: relative; min-height: 60vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 100px 40px;
  background: linear-gradient(rgba(12,35,64,0.7), rgba(12,35,64,0.7)),
    url('https://images.unsplash.com/photo-1505118380757-91f5f5632de0?w=1800&q=80') center/cover no-repeat;
  color: #fff;
}
.hero-content { max-width: 700px; }
.hero-h1 { font-size: 48px; color: #fff; margin-bottom: 20px; }
.hero-p { font-size: 20px; margin-bottom: 40px; opacity: 0.9; }
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- CARDS ---- */
.card, .voyage-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s;
  text-decoration: none; color: inherit; display: block;
}
.card:hover, .voyage-card:hover { transform: translateY(-4px); }
.voyage-card-body { padding: 16px; }

/* ---- BUTTONS ---- */
.btn-primary {
  background: var(--navy); color: #fff;
  padding: 12px 30px; border-radius: 8px;
  font-weight: 600; text-decoration: none; border: none; cursor: pointer;
  display: inline-block; font-family: inherit; font-size: 14px; transition: all .18s;
}
.btn-primary:hover { background: var(--navy-mid); }
.btn-gold {
  background: var(--gold); color: var(--navy);
  padding: 12px 30px; border-radius: 8px;
  font-weight: 700; text-decoration: none; border: none; cursor: pointer;
  display: inline-block; font-family: inherit; font-size: 14px; transition: all .18s;
}
.btn-gold:hover { background: #F0D98A; }
.btn-outline {
  background: transparent; color: var(--navy);
  padding: 10px 24px; border-radius: 8px; font-weight: 600;
  text-decoration: none; border: 1.5px solid var(--navy); cursor: pointer;
  display: inline-block; font-family: inherit; font-size: 14px; transition: all .18s;
}
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ---- BADGES ---- */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 100px; }
.badge-verified { background: var(--success-bg); color: var(--success); border: 1px solid rgba(26,122,74,0.2); }
.badge-unverified { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(212,134,10,0.2); }

/* ---- AVATARS ---- */
.av-xs {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--ocean); color: #fff;
  font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* ---- GRIDS ---- */
.voyages-grid {
  max-width: 1200px; margin: 60px auto; padding: 0 40px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.voyage-route { font-size: 18px; margin-bottom: 8px; font-weight: 700; }
.voyage-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.voyage-price { font-size: 20px; font-weight: 700; color: var(--navy); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }

/* ---- LAYOUTS ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.main-content { padding-top: 70px; min-height: 80vh; }
.py-5 { padding: 60px 0; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mt-4 { margin-top: 16px; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.w-100 { width: 100%; }

/* ---- FORMS ---- */
.form-control {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--border); border-radius: 8px;
  font-family: inherit; font-size: 14px; color: var(--text-primary);
  background: #fff; outline: none; transition: border-color .15s;
}
.form-control:focus { border-color: var(--ocean); }

/* ---- FOOTER ---- */
footer {
  background: var(--navy); color: #fff;
  padding: 40px; text-align: center; font-size: 14px;
}
footer a { color: rgba(255,255,255,0.6); text-decoration: none; }
footer a:hover { color: var(--gold); }

/* ================================================
   RESPONSIVE GLOBALE — prind orice pagina noua
   ================================================ */

/* TABLET - 1024px */
@media (max-width: 1024px) {
  .navbar { padding: 0 24px; }
  .container { padding: 0 24px; }

  /* Orice grid cu mai mult de 2 coloane devine 2 coloane */
  .grid-3 { grid-template-columns: 1fr 1fr !important; }
  .voyages-grid { grid-template-columns: repeat(2, 1fr) !important; padding: 0 24px; }

  /* Pagini specifice */
  .hero-inner { grid-template-columns: 1fr !important; gap: 40px !important; padding: 120px 24px 60px !important; }
  .hero-right, .hero-card-main, .hero-card-sm { display: none !important; }
  .browse-body { grid-template-columns: 200px 1fr !important; padding: 32px 24px 60px !important; }
  .voyage-body { grid-template-columns: 1fr !important; padding: 32px 24px 60px !important; }
  .voyage-sidebar { order: -1; }
  .profile-grid { grid-template-columns: 1fr !important; }
  .profile-main { padding: 0 24px 60px !important; }
  .dash-body { padding: 32px 24px 60px !important; }
  .create-body { padding: 32px 24px 60px !important; }
  .form-grid-3 { grid-template-columns: 1fr 1fr !important; }
  .features-grid-3 { grid-template-columns: 1fr 1fr !important; }
  .features-section, .how-section, .voyages-hp, .cta-hp, .cta-section { padding-left: 24px !important; padding-right: 24px !important; }
  .voyages-hp-grid { grid-template-columns: 1fr 1fr !important; }
  .skippers-grid { grid-template-columns: 1fr 1fr !important; }
  .skippers-body { padding: 32px 24px 60px !important; }
}

/* MOBILE - 768px */
@media (max-width: 768px) {

  /* GLOBAL — prinde orice grid pe orice pagina noua */
  body { overflow-x: hidden; }
  .main-content { overflow-x: hidden; }

  /* Orice grid devine 1 coloana pe mobile */
  [class*="grid-"] { grid-template-columns: 1fr !important; }
  .grid-2, .grid-3, .grid-auto { grid-template-columns: 1fr !important; }
  .voyages-grid { grid-template-columns: 1fr !important; padding: 0 20px !important; margin: 32px auto !important; }

  /* Orice sectiune cu padding mare se reduce */
  [class*="-section"], [class*="-hero"], [class*="-body"] {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* NAVBAR */
  .navbar { padding: 0 20px; }
  .nav-links { display: none !important; }
  .nav-hamburger { display: flex !important; }

  /* CONTAINER */
  .container { padding: 0 20px !important; }

  /* HERO */
  .hero { padding: 90px 20px 50px !important; min-height: auto; }
  .hero-h1 { font-size: 30px !important; }
  .hero-p { font-size: 15px !important; }
  .hero-inner { grid-template-columns: 1fr !important; padding: 100px 20px 60px !important; }
  .hero-right { display: none !important; }
  .hero-btns { flex-direction: column !important; align-items: stretch !important; }
  .hero-btns a, .hero-btns button { width: 100% !important; text-align: center !important; }
  .hero-stats { gap: 16px !important; flex-wrap: wrap; }

  /* GRIDS specifice */
  .features-grid-3 { grid-template-columns: 1fr !important; }
  .how-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .voyages-hp-grid { grid-template-columns: 1fr !important; }
  .skippers-grid { grid-template-columns: 1fr !important; }
  .voyages-grid-2 { grid-template-columns: 1fr !important; }
  .form-grid-2 { grid-template-columns: 1fr !important; }
  .form-grid-3 { grid-template-columns: 1fr !important; }
  .req-grid { grid-template-columns: 1fr !important; }

  /* BROWSE */
  .browse-hero { padding: 90px 20px 40px !important; }
  .browse-title { font-size: 26px !important; }
  .browse-sub { display: none; }
  .browse-body { grid-template-columns: 1fr !important; padding: 20px !important; }
  .filters-sidebar, .filters-panel { display: flex !important; flex-wrap: wrap !important; gap: 8px !important; margin-bottom: 20px; }
  .filter-group { min-width: 140px; flex: 1; margin-bottom: 0 !important; }

  /* VOYAGE DETAIL */
  .voyage-hero { padding: 90px 20px 40px !important; }
  .voyage-hero-title { font-size: 24px !important; }
  .voyage-hero-stats { flex-wrap: wrap !important; }
  .vhs { min-width: 45%; }
  .voyage-body { grid-template-columns: 1fr !important; padding: 20px !important; gap: 20px !important; }
  .route-visual { overflow-x: auto; padding-bottom: 8px; }

  /* PROFILE */
  .profile-cover { height: 120px !important; }
  .profile-main { padding: 0 20px 60px !important; }
  .profile-head { flex-direction: column !important; align-items: flex-start !important; gap: 12px; }
  .profile-head-right { width: 100%; }
  .profile-grid { grid-template-columns: 1fr !important; }
  .stats-row { flex-wrap: wrap; }
  .stat-cell { min-width: 45%; }

  /* DASHBOARD */
  .dash-hero { padding: 90px 20px 40px !important; }
  .dash-title { font-size: 26px !important; }
  .dash-sub { display: none; }
  .dash-stats { flex-wrap: wrap !important; }
  .dash-stat { min-width: 45%; }
  .dash-body { padding: 20px !important; }
  .dash-toolbar { flex-direction: column !important; gap: 12px !important; align-items: flex-start !important; }

  /* CREATE VOYAGE */
  .create-hero { padding: 90px 20px 40px !important; }
  .create-title { font-size: 26px !important; }
  .create-body { padding: 20px !important; }
  .voyage-type-group { flex-direction: column !important; }
  .submit-bar { flex-direction: column-reverse !important; gap: 12px; }
  .publish-btn { width: 100% !important; }

  /* SECTIONS */
  .features-section { padding: 48px 20px !important; }
  .how-section { padding: 48px 20px !important; }
  .voyages-hp { padding: 48px 20px !important; }
  .cta-section, .cta-hp { padding: 48px 20px !important; }
  .section-title, .section-title-white, .section-title-navy { font-size: 26px !important; }
  .cta-title, .cta-hp-title { font-size: 26px !important; }
  .cta-btns, .cta-hp-btns { flex-direction: column !important; align-items: center; }

  /* SKIPPERS */
  .skippers-hero { padding: 90px 20px 40px !important; }
  .skippers-title { font-size: 26px !important; }
  .skippers-body { padding: 20px !important; }
  .filters-row { gap: 6px; flex-wrap: wrap; }

  /* CHAT */
  .chat-wrap { padding: 0 !important; margin: 70px 0 0 !important; }
  .chat-grid { grid-template-columns: 1fr !important; border-radius: 0 !important; height: auto !important; min-height: calc(100vh - 70px); }
  .chat-sidebar { display: none !important; }
  .chat-main { height: calc(100vh - 70px); }

  /* FOOTER */
  footer { padding: 32px 20px !important; }

  /* FORMS */
  .form-card { padding: 20px !important; }
}

/* SMALL MOBILE - 480px */
@media (max-width: 480px) {
  .hero-h1 { font-size: 24px !important; }
  .voyage-hero-title { font-size: 20px !important; }
  .dash-title { font-size: 22px !important; }
  .skippers-title { font-size: 22px !important; }
  .browse-title { font-size: 22px !important; }
  .create-title { font-size: 22px !important; }

  /* Stats full width */
  .vhs { min-width: 100% !important; border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .dash-stat { min-width: 100% !important; }
  .stat-cell { min-width: 100% !important; }
  .sc-stats { flex-direction: column !important; }
  .sc-stat { border-right: none !important; border-bottom: 1px solid #EAE6E0; }
  .sc-stat:last-child { border-bottom: none; }

  /* Cards full width on tiny screens */
  .vcard-actions { flex-direction: column; gap: 6px; }
  .vcard-actions a, .vcard-actions button { width: 100%; text-align: center; }
}

/* ================================================
   FIX — Ascunde hamburger duplicat
   Daca exista mai mult de un .nav-hamburger in navbar
   il ascunde pe al doilea
   ================================================ */
.navbar .nav-hamburger + .nav-hamburger { display: none !important; }
/* Daca layoutul din index.php sau alte pagini adauga un al doilea hamburger */
.navbar button.nav-hamburger ~ button.nav-hamburger { display: none !important; }
