/* rekoi.net — Magyar Apróhirdetések — Main Stylesheet */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue: #003580;
  --blue-dark: #002560;
  --blue-light: #0055b3;
  --orange: #ff5a00;
  --orange-light: #ff7a33;
  --amber: #ffb700;
  --bg: #f0f2f5;
  --bg-white: #ffffff;
  --text: #222222;
  --text-muted: #666666;
  --border: #e0e0e0;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --radius: 8px;
  --font: "Segoe UI", Arial, sans-serif;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}
a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  color: var(--orange);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul {
  list-style: none;
}

/* ===== COOKIE BANNER ===== */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #1a1a2e;
  color: #fff;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.3);
}
#cookie-banner p {
  flex: 1;
  min-width: 200px;
}
#cookie-banner a {
  color: var(--amber);
}
.cookie-btns {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.btn-accept {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
.btn-reject {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}
.btn-accept:hover {
  background: var(--orange-light);
}
.btn-reject:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ===== HEADER ===== */
.site-header {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-link:hover {
  opacity: 0.9;
}
.site-tagline {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.header-search {
  display: flex;
  flex: 1;
  max-width: 440px;
}
.header-search input {
  flex: 1;
  padding: 10px 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 14px;
}
.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.header-search input:focus {
  outline: none;
  border-color: var(--amber);
}
.header-search button {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  font-size: 16px;
}
.header-search button:hover {
  background: var(--orange-light);
}

.header-actions {
  display: flex;
  gap: 8px;
}
.btn-post {
  background: var(--orange);
  color: #fff;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s;
}
.btn-post:hover {
  background: var(--orange-light);
  color: #fff;
}

/* NAV */
.main-nav {
  background: var(--blue-dark);
}
.main-nav ul {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  overflow-x: auto;
}
.main-nav ul li a {
  display: block;
  padding: 11px 16px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s;
}
.main-nav ul li a:hover,
.main-nav ul li a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
.main-nav ul li a.active {
  border-bottom: 2px solid var(--amber);
}

/* ===== WRAPPER / GRID ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.page-body {
  padding: 24px 0 48px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}

/* ===== AD PLACEHOLDERS ===== */
.ad-placeholder {
  background: #e8ecf0;
  border: 1px dashed #b0b8c4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  user-select: none;
  position: relative;
  overflow: hidden;
}
.ad-placeholder::before {
  content: "HIRDETÉS";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  letter-spacing: 2px;
  color: #aaa;
}
.ad-placeholder .ad-size {
  font-size: 10px;
  color: #bbb;
  margin-top: 24px;
}

.ad-leaderboard {
  width: 100%;
  height: 90px;
}
.ad-medium-rect {
  width: 300px;
  height: 250px;
}
.ad-large-rect {
  width: 336px;
  height: 280px;
  max-width: 100%;
}
.ad-skyscraper {
  width: 160px;
  height: 600px;
}
.ad-mobile {
  width: 100%;
  max-width: 320px;
  height: 50px;
}
.ad-banner-300 {
  width: 300px;
  height: 600px;
}

.ad-top-bar {
  margin: 0 auto 20px;
  max-width: 728px;
}
.ad-section {
  margin: 20px 0;
  display: flex;
  justify-content: center;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 320px;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 28px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
}
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 20px;
}
.hero-content h1 {
  font-size: 32px;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  margin-bottom: 8px;
}
.hero-content p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 20px;
}
.hero-search {
  display: flex;
  gap: 0;
  width: 100%;
  max-width: 500px;
}
.hero-search input {
  flex: 1;
  padding: 14px 20px;
  font-size: 15px;
  border: none;
  border-radius: var(--radius) 0 0 var(--radius);
}
.hero-search button {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
}

/* ===== CATEGORIES ===== */
.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--orange);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title .badge {
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.cat-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 18px 14px;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
  box-shadow: var(--shadow);
  border: 1px solid transparent;
}
.cat-card:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.cat-card .cat-icon {
  font-size: 32px;
  margin-bottom: 8px;
}
.cat-card .cat-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.cat-card .cat-count {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* ===== LISTING CARDS ===== */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.listing-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}
.listing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.13);
}
.listing-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #eee;
}
.listing-card-img-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #e8ecf0, #d0d8e4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}
.listing-card-body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.listing-card-cat {
  font-size: 11px;
  color: var(--orange);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.listing-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
}
.listing-card-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 8px;
}
.listing-card-price.free {
  color: #27ae60;
}
.listing-card-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: auto;
  display: flex;
  gap: 10px;
}
.listing-card-meta span::before {
  margin-right: 3px;
}

/* ===== NEWS / ARTICLES ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
.news-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  gap: 0;
  flex-direction: column;
  transition: all 0.2s;
}
.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}
.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.news-card-body {
  padding: 16px;
}
.news-card-cat {
  font-size: 11px;
  color: var(--orange);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.news-card-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.35;
}
.news-card-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.news-card-date {
  font-size: 12px;
  color: #999;
}

/* ===== SIDEBAR ===== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sidebar-widget {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.sidebar-widget-title {
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.sidebar-widget-body {
  padding: 14px;
}
.sidebar-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.sidebar-list li:last-child {
  border-bottom: none;
}
.sidebar-list li a {
  color: var(--text);
  display: flex;
  justify-content: space-between;
}
.sidebar-list li a:hover {
  color: var(--orange);
}
.sidebar-list .count {
  color: var(--text-muted);
  font-size: 12px;
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: #fff;
  padding: 32px 20px;
  margin-bottom: 28px;
  border-radius: var(--radius);
}
.page-hero h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 6px;
}
.page-hero p {
  opacity: 0.85;
  font-size: 14px;
}
.breadcrumb {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 10px;
}
.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
}

/* ===== CATEGORY PAGE LISTINGS ===== */
.filter-bar {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.filter-bar label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.filter-bar select,
.filter-bar input {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
}
.filter-btn {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 9px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.filter-btn:hover {
  background: var(--blue-light);
}

.listings-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.listing-row {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 16px;
  align-items: center;
  transition: all 0.2s;
}
.listing-row:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.13);
  transform: translateX(3px);
}
.listing-row-img {
  width: 140px;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
  background: #eee;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.listing-row-info h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}
.listing-row-info p {
  font-size: 13px;
  color: var(--text-muted);
}
.listing-row-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--orange);
  text-align: right;
  white-space: nowrap;
}

/* ===== CONTACT / FORM ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-family: var(--font);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.btn-submit {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 13px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-submit:hover {
  background: var(--orange-light);
}

.contact-info-box {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.contact-info-box h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--blue);
}
.contact-info-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  align-items: flex-start;
}
.contact-info-item .icon {
  font-size: 20px;
  flex-shrink: 0;
}
.contact-info-item p {
  font-size: 14px;
}
.contact-info-item strong {
  display: block;
  font-weight: 700;
}

/* ===== ABOUT ===== */
.about-hero-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.about-text h2 {
  font-size: 24px;
  color: var(--blue);
  margin-bottom: 12px;
}
.about-text p {
  margin-bottom: 14px;
  color: var(--text-muted);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 28px 0;
}
.stat-box {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--orange);
}
.stat-box .number {
  font-size: 32px;
  font-weight: 800;
  color: var(--blue);
}
.stat-box .label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== POLICY PAGES ===== */
.policy-content {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.policy-content h2 {
  font-size: 22px;
  color: var(--blue);
  margin: 24px 0 12px;
}
.policy-content h3 {
  font-size: 17px;
  color: var(--text);
  margin: 18px 0 8px;
}
.policy-content p {
  color: var(--text-muted);
  margin-bottom: 12px;
}
.policy-content ul {
  padding-left: 20px;
  margin-bottom: 12px;
}
.policy-content ul li {
  list-style: disc;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.policy-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}
.policy-content table th,
.policy-content table td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  font-size: 13px;
}
.policy-content table th {
  background: var(--bg);
  font-weight: 700;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #1a1a2e;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 48px;
}
.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 28px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand p {
  font-size: 13px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.55);
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-col ul li {
  margin-bottom: 7px;
}
.footer-col ul li a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}
.footer-col ul li a:hover {
  color: var(--amber);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 20px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}
.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
}
.footer-bottom a:hover {
  color: var(--amber);
}
.footer-legal {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
  }
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .listings-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .header-top {
    flex-wrap: wrap;
  }
  .header-search {
    order: 3;
    width: 100%;
    max-width: none;
  }
  .listings-grid {
    grid-template-columns: 1fr;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .listing-row {
    grid-template-columns: 80px 1fr;
  }
  .listing-row-img {
    width: 80px;
    height: 70px;
  }
  .listing-row-price {
    grid-column: 1 / -1;
    text-align: left;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .hero-content h1 {
    font-size: 22px;
  }
  .ad-leaderboard {
    height: 50px;
  }
}
