/* ==================================================
   HEADER — Driveandgo (FINAL FIXED + ORANGE)
================================================== */

:root{
  --header-height: 72px;
  --container: 1200px;

  --radius-sm: 10px;
  --radius-md: 12px;

  --bg: #ffffff;
  --bg-soft: #f3f4f6;

  --text: #111;
  --text-muted: #666;

  --brand: #D67940;
  --danger: #ef4444;

  --shadow-header: 0 2px 10px rgba(0,0,0,.06);
  --shadow-pop: 0 12px 28px rgba(0,0,0,.18);
}

/* ==================================================
   FIXED HEADER
================================================== */

.menu{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--bg);
  z-index: 1000;
  box-shadow: var(--shadow-header);
  will-change: transform;
}

.page{
  padding-top: var(--header-height);
}

/* ==================================================
   INNER
================================================== */

.menu-inner{
  max-width: var(--container);
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-left,
.menu-right{
  display: flex;
  align-items: center;
  gap: 18px;
}


.menu-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-icon,
.dropdown {
  display: flex;
  align-items: center;
}

.icon-btn {
  all: unset;
  cursor: pointer;
  display: flex;
  align-items: center;
  position: relative;
}


/* ==================================================
   LOGO
================================================== */

.menu-logo img{
  height: 44px;
  display: block;
}

/* ==================================================
   MENU LINKS
================================================== */

.menu-item{
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 8px 12px;
  border-radius: var(--radius-sm);

  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;

  transition: background .15s ease, transform .15s ease;
}

.menu-item:hover{
  background: var(--bg-soft);
}

.menu-item:active{
  transform: translateY(1px);
}

/* ==================================================
   HEADER ACTION ICONS (ORANGE)
================================================== */

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: 8px;
}

.header-icon {
  position: relative;
  width: 40px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;

  /* ?? BRAND COLOR */
  background: rgba(214, 121, 64, 0.12);
  color: var(--brand);

  text-decoration: none;

  transition: 
    background .2s ease,
    box-shadow .2s ease,
    transform .15s ease,
    color .15s ease;
}

.header-icon i {
  font-size: 18px;
}

.header-icon:hover {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 6px 18px rgba(214, 121, 64, 0.35);
  transform: translateY(-1px);
}

/* active icon (optional) */
.header-icon.active{
  background: var(--brand);
  color: #fff;
}

/* ==================================================
   BADGES
================================================== */

.header-icon .badge {
  position: absolute;
  top: -4px;
  right: -4px;

  min-width: 18px;
  height: 18px;
  padding: 0 5px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  background: #111;
  color: #fff;

  font-size: 11px;
  font-weight: 800;
  line-height: 1;

  box-shadow: 0 4px 10px rgba(0,0,0,.25);
}

.header-icon .badge.ghost {
  background: #111;
}

/* ==================================================
   DROPDOWN USER
================================================== */

.dropdown{
  position: relative;
}

.dropdown-toggle{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.dropdown-toggle img{
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

/* menu */
.dropdown-content{
  position: absolute;
  top: 100%;
  right: 0;

  margin-top: 8px;
  min-width: 180px;
  padding: 6px 0;

  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-pop);

  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .2s ease, transform .2s ease;

  z-index: 3000;
}

.dropdown.open .dropdown-content{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-content a{
  display: block;
  padding: 10px 16px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.dropdown-content a:hover{
  background: var(--bg-soft);
}



/* ==================================================
   MOBILE ICONS — BRAND ORANGE
================================================== */

.mobile-icons a {
  color: var(--brand);                 /* брендові іконки */
  background: rgba(214, 121, 64, 0.12); /* м'який brand-фон */
  width: 38px;
  height: 38px;
  border-radius: 12px;

  display: flex;
  align-items: center;
  justify-content: center;

  transition:
    background .2s ease,
    box-shadow .2s ease,
    transform .15s ease,
    color .15s ease;
}

.mobile-icons a i {
  font-size: 18px;
}

/* hover */
.mobile-icons a:hover {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 6px 18px rgba(214, 121, 64, 0.35);
  transform: translateY(-1px);
}

/* active (поточна сторінка) */
.mobile-icons a.active {
  background: var(--brand);
  color: #fff;
}



/* ==================================================
   NOTIFICATIONS DROPDOWN
================================================== */

.notif-wrap {
  position: relative;
}

/* dropdown box */
.notif-box {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;

  width: 320px;
  max-height: 420px;
  overflow-y: auto;

  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-pop);

  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);

  transition: opacity .2s ease, transform .2s ease;
  z-index: 4000;
}

/* open state */
.notif-wrap.open .notif-box {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* notification item */
.notif-item {
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.35;
  cursor: pointer;

  display: flex;
  flex-direction: column;
  gap: 4px;

  border-bottom: 1px solid #eee;
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-item:hover {
  background: var(--bg-soft);
}

/* unread */
.notif-item.unread {
  background: rgba(214, 121, 64, 0.08);
  font-weight: 700;
}

/* time */
.notif-time {
  font-size: 12px;
  color: var(--text-muted);
}


/* ==================================================
   RESPONSIVE
================================================== */

.desktop-only{ display: flex; }
.mobile-only{ display: none; }

@media (max-width: 1024px){
  .desktop-only{ display: none !important; }
  .mobile-only{ display: flex !important; }
}

@media (max-width: 768px){

  :root{
    --header-height: 56px;
  }

  .menu-inner{
    padding: 0 12px;
  }

  .menu-logo img{
    height: 34px;
  }

  .menu-item{
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
  }

  .menu-item span{
    display: none;
  }

  .header-icon{
    width: 38px;
    height: 38px;
  }
}



.action-links{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

.action-btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:14px;
  text-decoration:none;
  font-weight:900;
  color: #111;

  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);

  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  min-height:44px;
}

.action-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0,0,0,.12);
  border-color: rgba(214,121,64,.25);
}

.action-btn:active{
  transform: translateY(0);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

.action-btn .ico{
  width:28px;
  height:28px;
  border-radius:10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background: rgba(214,121,64,.14);
  color: var(--brand, #D67940);
  flex: 0 0 auto;
  font-size:16px;
}

/* основна кнопка */
.action-btn--primary{
  background: var(--brand, #D67940);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(214,121,64,.30);
}
.action-btn--primary .ico{
  background: rgba(255,255,255,.18);
  color:#fff;
}
.action-btn--primary:hover{
  box-shadow: 0 18px 42px rgba(214,121,64,.38);
  border-color: transparent;
}

/* бейдж-лічильник */
.action-btn .badge{
  margin-left:4px;
  min-width:20px;
  height:20px;
  padding:0 6px;
  border-radius:999px;
  background:#111;
  color:#fff;
  font-size:12px;
  font-weight:1000;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

/* мобільна адаптація */
@media (max-width: 520px){
  .action-links{ gap:8px; }
  .action-btn{ padding:10px 12px; }
}



/* ====== Driveandgo pill buttons ====== */
.dg-actions{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  align-items:center;
}

.dg-btn{
  display:inline-flex;
  align-items:center;
  gap:12px;
  height:52px;
  padding:0 22px;
  border-radius:999px;
  font-weight:1000;
  font-size:18px;
  line-height:1;
  text-decoration:none;
  user-select:none;
  white-space:nowrap;

  border:1px solid rgba(0,0,0,.10);
  background:#fff;
  color:#2b2b2b;

  box-shadow: 0 10px 26px rgba(0,0,0,.08);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.dg-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(0,0,0,.12);
}

.dg-btn:active{
  transform: translateY(0);
  box-shadow: 0 10px 26px rgba(0,0,0,.08);
}

.dg-btn .ico{
  font-size:22px;
  line-height:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

/* Orange (основна дія) */
.dg-btn--brand{
  background: var(--brand, #D67940);
  border-color: transparent;
  color:#fff;
  box-shadow: 0 14px 34px rgba(214,121,64,.28);
}
.dg-btn--brand:hover{
  box-shadow: 0 20px 44px rgba(214,121,64,.35);
}

/* White-outline (другорядна дія) */
.dg-btn--outline{
  background:#fff;
  color:#3a1a7a; /* акцентний колір тексту */
  border:1px solid rgba(0,0,0,.12);
}
.dg-btn--outline .ico{ color:#5b2bd6; }

/* Black (темна кнопка) */
.dg-btn--dark{
  background:#111;
  border-color: transparent;
  color:#fff;
  box-shadow: 0 14px 34px rgba(0,0,0,.22);
}
.dg-btn--dark:hover{
  box-shadow: 0 18px 44px rgba(0,0,0,.30);
}

/* badge на кнопках-лічильниках */
.dg-badge{
  margin-left:6px;
  min-width:22px;
  height:22px;
  padding:0 7px;
  border-radius:999px;
  background:#fff;
  color:#111;
  font-size:12px;
  font-weight:1000;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.dg-btn--dark .dg-badge{
  background: rgba(255,255,255,.16);
  color:#fff;
}

/* мобільні */
@media (max-width:520px){
  .dg-btn{ height:48px; font-size:16px; padding:0 18px; }
  .dg-btn .ico{ font-size:20px; }
}

/* Final Driveandgo palette for legacy marketplace buttons */
.action-btn{
  color:#2b241f;
  background:rgba(255,250,245,.92);
  border-color:rgba(233,135,67,.16);
  box-shadow:0 12px 30px rgba(120,74,36,.10);
}

.action-btn:hover{
  border-color:rgba(233,135,67,.28);
  box-shadow:0 0 0 1px rgba(233,135,67,.14), 0 18px 40px rgba(120,74,36,.14);
}

.action-btn .ico{
  background:rgba(233,135,67,.12);
  color:#e98743;
}

.action-btn--primary,
.dg-btn--brand{
  background:#e98743;
  color:#fff;
  box-shadow:0 16px 36px rgba(233,135,67,.24);
}

.action-btn--primary:hover,
.dg-btn--brand:hover{
  box-shadow:0 20px 42px rgba(233,135,67,.30);
}

.dg-btn{
  background:rgba(255,250,245,.92);
  border-color:rgba(233,135,67,.16);
  color:#2b241f;
  box-shadow:0 12px 30px rgba(120,74,36,.10);
}

.dg-btn--outline{
  background:rgba(255,250,245,.92);
  color:#d87431;
  border:1px solid rgba(233,135,67,.16);
}

.dg-btn--outline .ico{ color:#e98743; }

