/*
Theme Name: Anunturi RO - Marketplace
Theme URI: https://anunturi.ro
Author: Claude AI
Author URI: https://claude.ai
Description: Tema moderna pentru marketplace de anunturi online, stil Facebook Marketplace. Include anunturi cu categorii, filtre, cont utilizator si monetizare prin anunturi promovate.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: anunturi-ro
Tags: marketplace, classifieds, listings, facebook-style, responsive
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:        #1877F2;
  --blue-dark:   #166FE5;
  --blue-light:  #E7F3FF;
  --green:       #42B883;
  --orange:      #F7961E;
  --red:         #FA3E3E;
  --bg:          #F0F2F5;
  --card:        #FFFFFF;
  --border:      #DADDE1;
  --text:        #1C1E21;
  --text-muted:  #65676B;
  --sidebar-w:   280px;
  --radius:      12px;
  --shadow:      0 2px 8px rgba(0,0,0,.10);
  --shadow-hover:0 6px 24px rgba(0,0,0,.14);
  --font:        'Nunito', 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* ===== TOPBAR ===== */
#topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--blue);
  height: 54px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.20);
  overflow: hidden;
}

#topbar .logo {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  white-space: nowrap;
  letter-spacing: -0.5px;
  text-decoration: none;
  flex-shrink: 0;
}
#topbar .logo span { color: #FFD700; }

#topbar .search-wrap {
  flex: 1;
  min-width: 0;
  position: relative;
}
#topbar .search-wrap input {
  width: 100%;
  padding: 8px 14px 8px 36px;
  border-radius: 24px;
  border: none;
  background: rgba(255,255,255,.20);
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: background .2s;
}
#topbar .search-wrap input::placeholder { color: rgba(255,255,255,.75); }
#topbar .search-wrap input:focus { background: rgba(255,255,255,.30); }
#topbar .search-wrap .icon {
  position: absolute;
  left: 11px; top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,.8);
  font-size: 14px;
  pointer-events: none;
}

#topbar .nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* ── Buton topbar — text pe desktop ── */
.btn-topbar {
  background: rgba(255,255,255,.18);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-topbar:hover { background: rgba(255,255,255,.28); text-decoration: none; color: #fff; }
.btn-topbar .btn-text { display: inline; }

.btn-topbar.primary {
  background: #FFD700;
  color: #1C1E21;
}
.btn-topbar.primary:hover { background: #FFC200; }

/* ── Pe tablete mici: text scurt ── */
@media (max-width: 760px) {
  .btn-topbar { padding: 7px 10px; font-size: 12px; }
}

/* ── Pe mobil: ascunde nav-actions, arata hamburger ── */
@media (max-width: 600px) {
  #topbar { padding: 0 10px; gap: 8px; height: 52px; }
  #topbar .logo { font-size: 17px; }
  /* Inlocuieste nav-actions cu iconite mici */
  #topbar .nav-actions { gap: 4px; }
  .btn-topbar {
    width: 36px; height: 36px;
    border-radius: 50%;
    padding: 0;
    justify-content: center;
    font-size: 17px;
  }
  .btn-topbar .btn-text { display: none; }
  .btn-topbar.primary {
    width: auto;
    border-radius: 8px;
    padding: 0 10px;
    height: 36px;
    font-size: 18px;
  }
}

/* ===== LAYOUT ===== */
#page-wrap {
  display: flex;
  max-width: 1280px;
  margin: 0 auto;
  gap: 16px;
  padding: 16px;
  align-items: flex-start;
}

/* ===== SIDEBAR ===== */
#sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  position: sticky;
  top: 72px;
}

.sidebar-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 12px;
}

.sidebar-card h3 {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 10px;
}

.cat-list { list-style: none; }
.cat-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  transition: background .15s;
  text-decoration: none;
}
.cat-list li a:hover { background: var(--blue-light); color: var(--blue); }
.cat-list li a .cat-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.cat-list li a .cat-count {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg);
  padding: 2px 7px;
  border-radius: 12px;
}

/* Filtru pret */
.filter-group { margin-bottom: 12px; }
.filter-group label { font-size: 13px; font-weight: 700; color: var(--text-muted); display: block; margin-bottom: 5px; }
.filter-row { display: flex; gap: 6px; }
.filter-row input {
  flex: 1; padding: 7px 10px;
  border: 1.5px solid var(--border);
  border-radius: 8px; font-size: 13px;
  outline: none; transition: border .2s;
}
.filter-row input:focus { border-color: var(--blue); }
.btn-filter {
  width: 100%; padding: 9px;
  background: var(--blue); color: #fff;
  border: none; border-radius: 8px;
  font-weight: 700; font-size: 14px;
  cursor: pointer; margin-top: 6px;
  transition: background .2s;
}
.btn-filter:hover { background: var(--blue-dark); }

/* ===== MAIN CONTENT ===== */
#main-content { flex: 1; min-width: 0; }

/* Sortare bar */
.sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card);
  border-radius: var(--radius);
  padding: 10px 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  flex-wrap: wrap;
  gap: 8px;
}
.sort-bar .results-count { font-size: 14px; color: var(--text-muted); font-weight: 600; }
.sort-bar .results-count strong { color: var(--text); }
.sort-select {
  padding: 6px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  background: #fff;
}

/* ===== GRID ANUNTURI ===== */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

/* ===== CARD ANUNT ===== */
.listing-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
  position: relative;
}
.listing-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.listing-card.promoted::before {
  content: '⭐ Promovat';
  position: absolute;
  top: 10px; left: 10px;
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  z-index: 2;
}

.card-img-wrap {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: #E4E6EB;
}
.card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.listing-card:hover .card-img-wrap img { transform: scale(1.04); }
.card-img-wrap .no-img {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
  color: #BEC3C9;
}

.card-fav {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(255,255,255,.85);
  border: none; border-radius: 50%;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
  transition: background .2s;
  z-index: 2;
}
.card-fav:hover { background: #fff; }
.card-fav.active { color: var(--red); }

.card-body { padding: 12px; }
.card-price {
  font-size: 18px;
  font-weight: 900;
  color: var(--blue);
  margin-bottom: 3px;
}
.card-price.negociabil::after {
  content: ' (neg.)';
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.card-meta span { display: flex; align-items: center; gap: 3px; }

/* ===== SINGLE ANUNT ===== */
.single-wrap {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 16px;
  align-items: flex-start;
}

.single-gallery {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.main-img { width: 100%; max-height: 480px; object-fit: cover; }
.thumb-row { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.thumb-row img { width: 72px; height: 60px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 2px solid transparent; }
.thumb-row img.active { border-color: var(--blue); }

.single-info {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-top: 12px;
}
.single-info h1 { font-size: 22px; font-weight: 900; margin-bottom: 6px; }
.single-price { font-size: 28px; font-weight: 900; color: var(--blue); margin-bottom: 12px; }
.single-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.meta-tag {
  background: var(--bg);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex; align-items: center; gap: 5px;
}
.single-desc { font-size: 14px; line-height: 1.7; color: var(--text); }

.seller-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 72px;
}
.seller-card .seller-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.seller-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff; font-weight: 900;
  flex-shrink: 0;
}
.seller-name { font-weight: 800; font-size: 16px; }
.seller-since { font-size: 12px; color: var(--text-muted); }
.btn-contact {
  display: block; width: 100%;
  background: var(--blue); color: #fff;
  padding: 12px; border-radius: 10px;
  font-weight: 800; font-size: 15px;
  text-align: center; border: none; cursor: pointer;
  margin-bottom: 8px; transition: background .2s;
  text-decoration: none;
}
.btn-contact:hover { background: var(--blue-dark); text-decoration: none; color:#fff; }
.btn-contact.whatsapp { background: #25D366; }
.btn-contact.whatsapp:hover { background: #1ebe5a; }
.btn-fav-single {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; padding: 10px;
  background: var(--bg); color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: 10px; font-weight: 700; font-size: 14px;
  cursor: pointer; transition: all .2s;
}
.btn-fav-single:hover { border-color: var(--red); color: var(--red); }

/* ===== FORMULAR ADAUGA ANUNT ===== */
.form-page {
  max-width: 720px;
  margin: 0 auto;
}
.form-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.form-card h2 { font-size: 20px; font-weight: 900; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 700;
  color: var(--text-muted); margin-bottom: 5px;
  text-transform: uppercase; letter-spacing: .5px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px; font-size: 14px;
  font-family: var(--font);
  transition: border .2s, box-shadow .2s;
  outline: none; background: #fff;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(24,119,242,.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.upload-zone {
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  background: var(--bg);
}
.upload-zone:hover { border-color: var(--blue); background: var(--blue-light); }
.upload-zone .upload-icon { font-size: 36px; margin-bottom: 8px; }
.upload-zone p { font-size: 14px; color: var(--text-muted); }
.upload-zone strong { color: var(--blue); }

.promo-options { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.promo-option {
  border: 2px solid var(--border);
  border-radius: 10px; padding: 14px;
  text-align: center; cursor: pointer;
  transition: all .2s;
}
.promo-option:hover, .promo-option.selected {
  border-color: var(--blue);
  background: var(--blue-light);
}
.promo-option .promo-icon { font-size: 28px; margin-bottom: 6px; }
.promo-option .promo-name { font-weight: 800; font-size: 14px; }
.promo-option .promo-price { font-size: 13px; color: var(--text-muted); }
.promo-option .promo-price strong { color: var(--blue); }

.btn-submit {
  width: 100%; padding: 14px;
  background: var(--blue); color: #fff;
  border: none; border-radius: 10px;
  font-size: 16px; font-weight: 800;
  cursor: pointer; transition: background .2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-submit:hover { background: var(--blue-dark); }

/* ===== BANNER RECLAME ===== */
.ad-banner {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  color: #fff;
  margin-bottom: 12px;
}
.ad-banner h4 { font-size: 14px; font-weight: 800; margin-bottom: 4px; }
.ad-banner p { font-size: 12px; opacity: .85; margin-bottom: 10px; }
.btn-ad { display: inline-block; background: #fff; color: #764ba2; padding: 7px 16px; border-radius: 8px; font-weight: 800; font-size: 13px; text-decoration: none; }

/* ===== PAGINATION ===== */
.pagination {
  display: flex; justify-content: center; gap: 6px;
  margin-top: 20px; flex-wrap: wrap;
}
.pagination a, .pagination span {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; font-weight: 700; font-size: 14px;
  background: var(--card); color: var(--text);
  box-shadow: var(--shadow); transition: all .2s;
  text-decoration: none; border: 1.5px solid transparent;
}
.pagination a:hover { background: var(--blue-light); color: var(--blue); border-color: var(--blue); }
.pagination .current { background: var(--blue); color: #fff; }

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center; padding: 60px 20px;
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.empty-state .empty-icon { font-size: 56px; margin-bottom: 12px; }
.empty-state h3 { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.empty-state p { color: var(--text-muted); font-size: 14px; }

/* ===== NOTICE / ALERTS ===== */
.notice {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.notice.success { background: #D4EDDA; color: #155724; }
.notice.error   { background: #F8D7DA; color: #721C24; }
.notice.info    { background: var(--blue-light); color: var(--blue); }

/* ===== FOOTER ===== */
#site-footer {
  background: #fff;
  border-top: 1px solid var(--border);
  margin-top: 32px;
  padding: 24px 16px;
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--text-muted); }
.footer-links a:hover { color: var(--blue); }
.footer-copy { font-size: 13px; color: var(--text-muted); }

/* ===== HAMBURGER MENU (mobile) ===== */
#hamburger {
  display: none;
  background: rgba(255,255,255,.18);
  border: none;
  border-radius: 8px;
  width: 38px; height: 38px;
  flex-shrink: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
#hamburger span {
  display: block; width: 20px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: all .3s;
}
#hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
#hamburger.open span:nth-child(2) { opacity: 0; }
#hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Sidebar mobile drawer */
#sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 900;
}
#sidebar-overlay.open { display: block; }

/* ===== RESPONSIVE TABLET (max 1024px) ===== */
@media (max-width: 1024px) {
  :root { --sidebar-w: 240px; }
  .listings-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

/* ===== RESPONSIVE TABLET (max 900px) ===== */
@media (max-width: 900px) {
  /* Sidebar becomes a slide-in drawer */
  #sidebar {
    position: fixed;
    top: 0; left: -290px;
    width: 280px; height: 100vh;
    background: var(--bg);
    z-index: 950;
    overflow-y: auto;
    padding: 70px 12px 24px;
    transition: left .3s cubic-bezier(.4,0,.2,1);
    box-shadow: none;
  }
  #sidebar.open {
    left: 0;
    box-shadow: 4px 0 24px rgba(0,0,0,.18);
  }
  #hamburger { display: flex; }
  #page-wrap { padding: 12px; }
  #main-content { width: 100%; }
  .single-wrap { grid-template-columns: 1fr; }
  .promo-options { grid-template-columns: 1fr 1fr; }
  .sort-bar { padding: 8px 12px; }
}

/* ===== RESPONSIVE MOBILE (max 640px) ===== */
@media (max-width: 640px) {
  /* Topbar compact */
  #topbar { padding: 0 10px; gap: 8px; height: 52px; }
  #topbar .logo { font-size: 18px; }
  #topbar .search-wrap { flex: 1; max-width: none; }
  #topbar .search-wrap input { font-size: 13px; padding: 7px 12px 7px 34px; }
  /* Hide text labels on topbar, show only icons */
  .btn-topbar .btn-label { display: none; }
  .btn-topbar { padding: 7px 10px; font-size: 18px; border-radius: 8px; }
  .btn-topbar.primary { padding: 7px 12px; font-size: 14px; }
  .btn-topbar.primary .btn-label { display: inline; }

  /* Grid: 2 coloane pe telefon */
  .listings-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card-img-wrap { height: 130px; }
  .card-body { padding: 8px; }
  .card-price { font-size: 15px; }
  .card-title { font-size: 13px; }
  .card-meta { font-size: 11px; gap: 4px; }

  /* Single anunt */
  .main-img { max-height: 260px; }
  .single-info { padding: 14px; }
  .single-info h1 { font-size: 18px; }
  .single-price { font-size: 22px; }

  /* Form */
  .form-card { padding: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .promo-options { grid-template-columns: 1fr; }
  .form-page { padding: 0; }

  /* Sort bar */
  .sort-bar { flex-direction: column; align-items: flex-start; gap: 6px; }
  .sort-select { width: 100%; }

  /* Seller card on single */
  .seller-card { position: static; }

  /* Footer */
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-links { gap: 10px; }

  /* Page wrap */
  #page-wrap { padding: 8px; gap: 8px; }

  /* Pagination */
  .pagination a, .pagination span { width: 32px; height: 32px; font-size: 13px; }
}

/* ===== RESPONSIVE SMALL (max 380px) ===== */
@media (max-width: 380px) {
  .listings-grid { grid-template-columns: 1fr; }
  .card-img-wrap { height: 200px; }
}

/* ===== WP CORE OVERRIDES ===== */
.wp-block-image img { border-radius: 8px; }
.aligncenter { margin: 0 auto; }
.screen-reader-text { display: none; }

/* ═══════════════════════════════════════════════
   AUTH PAGE — Login / Register
   ═══════════════════════════════════════════════ */

.auth-bg {
  min-height: 100vh;
  background: linear-gradient(135deg, #1877F2 0%, #0d5abf 40%, #0a3d7a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  position: relative;
  overflow: hidden;
}

/* Decor cercuri fundal */
.auth-bg::before,
.auth-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: .12;
  pointer-events: none;
}
.auth-bg::before {
  width: 500px; height: 500px;
  background: #fff;
  top: -150px; right: -100px;
}
.auth-bg::after {
  width: 360px; height: 360px;
  background: #fff;
  bottom: -120px; left: -80px;
}

.auth-wrap {
  width: 100%;
  max-width: 460px;
  position: relative;
  z-index: 1;
}

/* Brand / Logo */
.auth-brand {
  text-align: center;
  margin-bottom: 24px;
}
.auth-logo {
  font-family: var(--font);
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  letter-spacing: -1px;
  display: inline-block;
}
.auth-logo span { color: #FFD700; }
.auth-tagline {
  color: rgba(255,255,255,.75);
  font-size: 14px;
  margin-top: 4px;
}

/* Card principal */
.auth-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  overflow: hidden;
}

/* ─── Tabs ────────────────────────────────── */
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.auth-tab {
  padding: 16px 12px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: color .2s;
  position: relative;
  z-index: 1;
  font-family: var(--font);
}
.auth-tab.active { color: var(--blue); }
.auth-tab-slider {
  position: absolute;
  bottom: 0; left: 0;
  width: 50%; height: 3px;
  background: var(--blue);
  border-radius: 3px 3px 0 0;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}

/* ─── Panel ───────────────────────────────── */
.auth-panel {
  display: none;
  padding: 28px 28px 24px;
  animation: fadeSlideIn .3s ease;
}
.auth-panel.active { display: block; }

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Notice ──────────────────────────────── */
.auth-notice {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.auth-notice.error   { background: #FEE2E2; color: #991B1B; }
.auth-notice.success { background: #D1FAE5; color: #065F46; }

/* ─── Social Buttons ──────────────────────── */
.social-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all .2s;
  border: 1.5px solid var(--border);
  color: var(--text);
  background: #fff;
  font-family: var(--font);
}
.social-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.10);
  text-decoration: none;
  color: var(--text);
}
.social-btn.google:hover  { border-color: #EA4335; background: #FEF2F2; }
.social-btn.facebook:hover{ border-color: #1877F2; background: #EFF6FF; }

/* ─── Divider ─────────────────────────────── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 13px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ─── Form Fields ─────────────────────────── */
.auth-field {
  margin-bottom: 14px;
}
.auth-field label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 5px;
}
.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.auth-input-icon {
  position: absolute;
  left: 13px;
  font-size: 16px;
  pointer-events: none;
  z-index: 1;
  line-height: 1;
}
.auth-input-wrap input {
  width: 100%;
  padding: 12px 44px 12px 40px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: border .2s, box-shadow .2s;
  background: #fff;
  color: var(--text);
}
.auth-input-wrap input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(24,119,242,.12);
}
.auth-input-wrap input::placeholder { color: #BEC3C9; }

.toggle-pass {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  opacity: .6;
  transition: opacity .2s;
}
.toggle-pass:hover { opacity: 1; }

/* ─── Password Strength ───────────────────── */
.pass-strength {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.pass-bar {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.pass-fill {
  height: 100%;
  width: 0%;
  border-radius: 4px;
  transition: width .3s, background .3s;
}
.pass-strength span {
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

/* ─── Submit button ───────────────────────── */
.auth-submit {
  width: 100%;
  padding: 14px 20px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  font-family: var(--font);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(24,119,242,.35);
}
.auth-submit:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(24,119,242,.45);
}
.auth-submit:active { transform: translateY(0); }
.auth-submit.green {
  background: var(--green);
  box-shadow: 0 4px 14px rgba(66,184,131,.35);
}
.auth-submit.green:hover {
  background: #38a873;
  box-shadow: 0 6px 20px rgba(66,184,131,.45);
}

/* ─── Switch link ─────────────────────────── */
.auth-switch {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 16px;
}

/* ─── Responsive ──────────────────────────── */
@media (max-width: 480px) {
  .auth-panel { padding: 20px 18px 18px; }
  .auth-logo  { font-size: 26px; }
  .social-btn { font-size: 13px; padding: 10px 12px; }
}

/* ═══════════════════════════════════════════════
   MOBILE DROPDOWN MENU
   ═══════════════════════════════════════════════ */

#mobile-menu {
  display: none;
  position: fixed;
  top: 52px; right: 0;
  width: 280px;
  max-height: calc(100vh - 52px);
  overflow-y: auto;
  z-index: 980;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
#mobile-menu.open {
  display: block;
  transform: translateX(0);
}
.mobile-menu-inner {
  background: var(--blue-dark);
  padding: 12px 10px 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 100%;
}
.mob-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  color: rgba(255,255,255,.9);
  font-size: 15px;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  transition: background .15s;
}
.mob-link:hover { background: rgba(255,255,255,.15); color: #fff; text-decoration: none; }
.mob-link.primary {
  background: #FFD700;
  color: #1C1E21;
  margin-top: 4px;
}
.mob-link.primary:hover { background: #FFC200; color: #1C1E21; }

/* Desktop: afiseaza textul complet pe nav */
@media (min-width: 901px) {
  #hamburger    { display: none !important; }
  #mobile-menu  { display: none !important; }
  .nav-actions  { display: flex !important; }
}
@media (max-width: 900px) {
  .nav-actions { display: none; }
  #hamburger   { display: flex; }
}
/* Topbar pe mobil mai compact */
@media (max-width: 600px) {
  #topbar { height: 52px; }
}

/* ═══════════════════════════════════════════════
   SINGLE ANUNT — redesign complet
   ═══════════════════════════════════════════════ */

.single-left  { display:flex; flex-direction:column; gap:14px; }
.single-right { display:flex; flex-direction:column; gap:12px; }

/* Galerie */
.main-img-wrap {
  position: relative;
  background: #111;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  max-height: 460px;
}
.main-img {
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  display: block;
  background: #f0f2f5;
}
.promo-badge {
  position: absolute; top:12px; left:12px;
  background: var(--orange); color:#fff;
  font-size:12px; font-weight:800;
  padding:4px 10px; border-radius:6px;
  z-index:2;
}
.gallery-nav {
  position: absolute; top:50%; transform:translateY(-50%);
  background: rgba(0,0,0,.45); color:#fff;
  border:none; border-radius:50%;
  width:38px; height:38px; font-size:18px;
  cursor:pointer; z-index:2;
  display:flex; align-items:center; justify-content:center;
  transition: background .2s;
}
.gallery-nav:hover { background:rgba(0,0,0,.7); }
.gallery-nav.prev { left:10px; }
.gallery-nav.next { right:10px; }
.gallery-counter {
  position:absolute; bottom:10px; right:12px;
  background:rgba(0,0,0,.55); color:#fff;
  font-size:12px; font-weight:700;
  padding:3px 9px; border-radius:12px;
}
.thumb-row {
  display:flex; gap:8px; padding:10px 12px;
  overflow-x:auto; background:#fff;
  border-top:1px solid var(--border);
}
.thumb-row img {
  width:72px; height:60px; object-fit:cover;
  border-radius:6px; cursor:pointer;
  border:2px solid transparent;
  flex-shrink:0; transition:border .15s;
}
.thumb-row img.active { border-color:var(--blue); }
.thumb-row img:hover  { border-color:var(--blue-dark); }

/* Info card */
.single-info {
  background:var(--card);
  border-radius:var(--radius);
  padding:20px;
  box-shadow:var(--shadow);
}
.single-price {
  font-size:28px; font-weight:900; color:var(--blue);
}

/* Like / Dislike */
.like-dislike-wrap {
  display:flex; align-items:stretch;
  border:2px solid var(--border);
  border-radius:12px; overflow:hidden;
  flex-shrink:0;
}
.like-btn {
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  gap:3px; padding:10px 18px;
  background:#fff; border:none;
  cursor:pointer; transition:background .2s;
  font-family:var(--font);
}
.like-btn:hover       { background:var(--blue-light); }
.like-btn.dislike:hover{ background:#FEE2E2; }
.like-btn.voted       { background:var(--blue-light); }
.like-btn.dislike.voted{background:#FEE2E2; }
.vote-icon  { font-size:22px; transition:transform .2s; }
.vote-count { font-size:13px; font-weight:800; color:var(--text-muted); line-height:1; }
.vote-divider { width:2px; background:var(--border); flex-shrink:0; }

/* Descriere card */
.desc-card {
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.desc-header {
  display:flex; align-items:center; gap:10px;
  padding:16px 20px 14px;
  border-bottom:2px solid var(--bg);
  background:var(--card);
}
.desc-icon {
  width:34px; height:34px;
  background:var(--blue-light);
  border-radius:8px;
  display:flex; align-items:center; justify-content:center;
  font-size:18px; flex-shrink:0;
}
.desc-header h2 { font-size:17px; font-weight:900; margin:0; }
.desc-body {
  padding:20px;
  font-size:15px; line-height:1.8; color:var(--text);
}
.desc-body p  { margin-bottom:12px; }
.desc-body p:last-child { margin-bottom:0; }
.desc-body ul, .desc-body ol { padding-left:20px; margin-bottom:12px; }
.desc-body li { margin-bottom:6px; }

/* Share bar */
.share-card {
  background:var(--card);
  border-radius:var(--radius);
  padding:14px 16px;
  box-shadow:var(--shadow);
  display:flex; align-items:center;
  gap:8px; flex-wrap:wrap;
}
.share-label { font-size:13px; font-weight:700; color:var(--text-muted); }
.share-btn {
  padding:7px 14px; border-radius:8px;
  font-size:13px; font-weight:700;
  cursor:pointer; border:none;
  text-decoration:none; transition:opacity .2s;
  display:flex; align-items:center; gap:5px;
  font-family:var(--font);
}
.share-btn:hover { opacity:.85; text-decoration:none; }
.share-btn.fb { background:#1877F2; color:#fff; }
.share-btn.wa { background:#25D366; color:#fff; }
.share-btn.cp { background:var(--bg); color:var(--text); border:1.5px solid var(--border); }

/* Seller warning */
.seller-warning {
  margin-top:12px;
  background:#FFF9EC;
  border:1px solid #FFD700;
  border-radius:8px;
  padding:10px 12px;
  font-size:12px; line-height:1.5; color:#856404;
}

/* Similar items */
.similar-card {
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.similar-item {
  display:flex; gap:10px; align-items:center;
  padding:9px 4px;
  border-bottom:1px solid var(--border);
  text-decoration:none; color:inherit;
  transition:background .15s; border-radius:8px;
}
.similar-item:last-child { border-bottom:none; }
.similar-item:hover { background:var(--bg); }
.similar-thumb {
  width:54px; height:48px; object-fit:cover;
  border-radius:7px; flex-shrink:0;
}
.similar-info { flex:1; min-width:0; }
.similar-title { font-size:13px; font-weight:700; line-height:1.3; margin-bottom:3px; }
.similar-price { font-size:13px; font-weight:900; color:var(--blue); }

/* Responsive single */
@media (max-width:768px) {
  .like-dislike-wrap { border-radius:10px; }
  .like-btn { padding:8px 14px; }
  .vote-icon { font-size:20px; }
  .desc-body { padding:14px 16px; font-size:14px; }
  .single-price { font-size:22px; }
  .share-card { padding:10px 12px; }
}

/* ═══════════════════════════════════════════════
   CONT MEU — fix buton deconectare
   ═══════════════════════════════════════════════ */
.btn-logout {
  display:inline-flex; align-items:center; gap:7px;
  padding:9px 18px;
  background:#fff;
  border:2px solid #FA3E3E;
  color:#FA3E3E;
  border-radius:10px;
  font-size:14px; font-weight:800;
  cursor:pointer; text-decoration:none;
  transition:all .2s;
  font-family:var(--font);
}
.btn-logout:hover {
  background:#FA3E3E; color:#fff;
  text-decoration:none;
}

/* ── Buton Editeaza anunt (pe pagina single) ── */
.btn-edit-anunt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 16px;
  background: #E7F3FF;
  color: var(--blue);
  border: 2px solid var(--blue);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  margin-bottom: 14px;
  transition: all .2s;
  font-family: var(--font);
}
.btn-edit-anunt:hover {
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(24,119,242,.3);
}

/* ── Like/Dislike fix vizibilitate ── */
.like-dislike-wrap {
  display: flex !important;
  align-items: stretch;
  border: 2px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: #fff;
}
.like-btn {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 20px;
  background: #fff;
  border: none;
  cursor: pointer;
  transition: background .2s;
  font-family: var(--font);
  min-width: 60px;
}
.like-btn:hover         { background: #E7F3FF; }
.like-btn.dislike:hover { background: #FEE2E2; }
.like-btn.voted         { background: #E7F3FF; }
.like-btn.dislike.voted { background: #FEE2E2; }
.vote-icon  { font-size: 24px; line-height: 1; transition: transform .2s; display: block; }
.vote-count { font-size: 14px; font-weight: 900; color: var(--text); line-height: 1; display: block; }
.vote-divider { width: 2px; background: var(--border); align-self: stretch; flex-shrink: 0; }
