/*
Theme Name: adforest child
Description: Adforest classified, responsive, multi-purpose, corporate, business theme.
Author: Scripts Bundle
Version: 1.0.0
Template: adforest
*/

/* Stil general */
body {
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #222;
  text-align: left;
}

h1 { font-weight: 700; font-size: 30px; line-height: 36px; }
h2 { font-weight: 700; font-size: 26px; line-height: 32px; }
h3 { font-weight: 600; font-size: 22px; line-height: 29px; }
h4 { font-weight: 600; font-size: 18px; line-height: 24px; }
h5 { font-weight: 500; font-size: 16px; line-height: 22px; }
h6 { font-weight: 500; font-size: 15px; line-height: 21px; }
p  { font-weight: 400; font-size: 16px; line-height: 24px; }

[class^="flaticon-"]:before,
[class*=" flaticon-"]:before {
  font-family: "Flaticon";
  font-style: normal;
  font-weight: normal;
  speak: none;
  display: inline-block;
  width: 1em;
  margin-right: 0.3em;
  text-align: center;
  line-height: 1;
}

/* Header */
.fb-header {
  background: #fff;
  border-bottom: 1px solid #ddd;
  padding: 6px 12px;
}

/* Header top */
.fb-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

/* Logo */
.fb-logo {
  display: flex;
  align-items: center;
}
.fb-logo img {
  max-height: 50px;
  height: auto;
  width: auto;
}

/* Search desktop – dublat + efect focus */
.fb-search {
  flex-grow: 1;
}
.fb-search form {
  width: 100%;
  max-width: none;
}
.fb-search input {
  width: 100%;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-radius: 20px;
  font-size: 14px;
  transition: all 0.3s ease;
}
.fb-search input:focus {
  border-color: #5e17eb;
  box-shadow: 0 0 6px rgba(94, 23, 235, 0.3);
  outline: none;
}

/* Icons */
.fb-icons {
  display: flex;
  align-items: center;
  gap: 20px;
}
.fb-icon {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 14px;
  color: #333;
}
.fb-icon i {
  font-size: 18px;
}
.fb-icon.add-ad {
  background: #5e17eb;
  color: #fff !important;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 6px;
}
.fb-icon.add-ad:hover {
  background: #4a0ec8;
}

/* Hover & click efecte pe iconițe */
.fb-icon:hover,
.fb-icon:focus,
.fb-icon:active {
  color: #5e17eb;
}
.fb-icon:hover i,
.fb-icon:focus i,
.fb-icon:active i {
  color: #5e17eb;
}

/* Responsive */
.desktop-only { display: block; }
.mobile-only { display: none; }

@media (max-width: 768px) {
  body { font-size: 11px; line-height: 17px; }
  h1 { font-size: 21px; line-height: 25px; }
  h2 { font-size: 18px; line-height: 22px; }
  h3 { font-size: 15px; line-height: 20px; }
  h4 { font-size: 13px; line-height: 17px; }
  h5 { font-size: 11px; line-height: 15px; }
  h6 { font-size: 10px; line-height: 14px; }
  p   { font-size: 11px; line-height: 17px; }

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

  .fb-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
  }

  .fb-logo {
    margin-left: -50px; /* ✅ mutat spre stânga cu 50px */
    display: flex;
    align-items: center;
  }

  .fb-logo img {
    max-height: 48px;
    transform: scale(0.8);
    display: block;
  }

  .fb-icons {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .fb-icon span { display: none; }

  .fb-icon.add-ad {
    padding: 6px;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    justify-content: center;
  }

  .fb-icon.add-ad span { display: none; }

  .fb-search {
    margin-top: 6px;
  }
}
