/* ═══════════════════════════════════════════════
   HORIZONT FOTÓBLOG — MAIN STYLESHEET v1.0
═══════════════════════════════════════════════ */

.hfb-wrap {
  --bg:        #0d0f0e;
  --surface:   #141715;
  --surface2:  #1c1f1d;
  --border:    #2a2e2b;
  --accent:    #8fb89a;
  --accent2:   #c9a96e;
  --text:      #e8e4dc;
  --muted:     #7a807b;
  --dim:       #4a504b;

  background: var(--bg);
  color: var(--text);
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  margin: 0 !important;
  padding: 0 !important;
  max-width: 100% !important;
}

/* ── HERO ── */
.hfb-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  padding: 60px 80px 90px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  animation: hfbHeroZoom 25s ease-in-out infinite alternate;
}

@keyframes hfbHeroZoom {
  from { background-size: 105%; }
  to   { background-size: 115%; }
}

.hfb-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(13,15,14,.97) 0%,
    rgba(13,15,14,.5) 50%,
    rgba(13,15,14,.15) 100%);
}

.hfb-hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hfb-eyebrow {
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hfb-eyebrow::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--accent);
}

.hfb-hero-title {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: clamp(44px, 6vw, 88px) !important;
  font-weight: 300 !important;
  line-height: 1.05 !important;
  color: var(--text) !important;
  margin: 0 0 20px !important;
  letter-spacing: -1px !important;
}
.hfb-hero-title em { font-style: italic; color: var(--accent2); }

.hfb-hero-sub {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: .4px;
  max-width: 460px;
  margin-bottom: 36px;
}

.hfb-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border: 1px solid var(--accent);
  color: var(--accent) !important;
  text-decoration: none !important;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 500;
  font-family: 'Raleway', sans-serif;
  transition: all .3s;
  cursor: pointer;
  background: none;
}
.hfb-btn:hover {
  background: var(--accent);
  color: var(--bg) !important;
}
.hfb-btn svg { width: 14px; height: 14px; }

.hfb-scroll-indicator {
  position: absolute;
  bottom: 36px;
  right: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--dim);
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  z-index: 2;
}
.hfb-scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: hfbScroll 2s ease-in-out infinite;
}
@keyframes hfbScroll {
  0%,100% { opacity: 1; transform: scaleY(1); }
  50%      { opacity: .4; transform: scaleY(.5); }
}

/* ── SEARCH BAR ── */
.hfb-search-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 80px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.hfb-search-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 500px;
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: 2px;
  transition: border-color .3s;
  position: relative;
}
.hfb-search-inner:focus-within { border-color: var(--accent); }
.hfb-search-inner svg { color: var(--dim); flex-shrink: 0; }
#hfb-search-input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  letter-spacing: .5px;
  width: 100%;
  font-weight: 300;
}
#hfb-search-input::placeholder { color: var(--dim); }

.hfb-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: -1px;
  right: -1px;
  background: var(--surface);
  border: 1px solid var(--border);
  z-index: 200;
  max-height: 400px;
  overflow-y: auto;
}
.hfb-search-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background .2s;
}
.hfb-search-item:last-child { border-bottom: none; }
.hfb-search-item:hover { background: var(--surface2); }
.hfb-search-item img { width: 60px; height: 44px; object-fit: cover; }
.hfb-search-item-title { font-family: 'Cormorant Garamond', serif; font-size: 15px; color: var(--text); line-height: 1.3; }
.hfb-search-item-date { font-size: 10px; color: var(--dim); letter-spacing: 1.5px; margin-top: 3px; }

/* ── BODY LAYOUT ── */
.hfb-body {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 0;
  max-width: 1360px;
  margin: 0 auto;
  padding: 70px 40px;
}

.hfb-main {
  padding-right: 60px;
  border-right: 1px solid var(--border);
}

/* ── SECTION HEADER ── */
.hfb-section-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 36px;
}
.hfb-section-header h2 {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  letter-spacing: 4px !important;
  text-transform: uppercase;
  color: var(--muted) !important;
  white-space: nowrap;
  margin: 0 !important;
}
.hfb-section-line { flex: 1; height: 1px; background: var(--border); }

/* ── CATEGORY FILTER ── */
.hfb-cat-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 44px;
}
.hfb-cat-btn {
  padding: 7px 16px;
  border: 1px solid var(--border);
  background: none;
  color: var(--muted);
  font-family: 'Raleway', sans-serif;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .2s;
  border-radius: 1px;
  font-weight: 400;
}
.hfb-cat-btn:hover, .hfb-cat-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(143,184,154,.07);
}

/* ── POST CARDS ── */
.hfb-posts-grid { display: flex; flex-direction: column; gap: 64px; }

.hfb-post-card {
  animation: hfbFadeUp .6s ease both;
}
.hfb-post-card:nth-child(1) { animation-delay: .05s; }
.hfb-post-card:nth-child(2) { animation-delay: .12s; }
.hfb-post-card:nth-child(3) { animation-delay: .19s; }
.hfb-post-card:nth-child(4) { animation-delay: .26s; }

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

.hfb-post-image-wrap {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  margin-bottom: 26px;
  text-decoration: none;
}
.hfb-post-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s ease;
}
.hfb-post-card:hover .hfb-post-image-wrap img { transform: scale(1.04); }

.hfb-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(13,15,14,.85);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  font-weight: 500;
  backdrop-filter: blur(4px);
  font-family: 'Raleway', sans-serif;
}

.hfb-post-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,15,14,.5), transparent 50%);
  opacity: 0;
  transition: opacity .4s;
}
.hfb-post-card:hover .hfb-post-overlay { opacity: 1; }

.hfb-post-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.hfb-post-date { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--dim); }
.hfb-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--border); }

.hfb-post-title {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: clamp(22px, 2.8vw, 34px) !important;
  font-weight: 400 !important;
  line-height: 1.15 !important;
  margin-bottom: 14px !important;
  letter-spacing: -.3px !important;
}
.hfb-post-title a {
  color: var(--text) !important;
  text-decoration: none !important;
  transition: color .3s;
}
.hfb-post-title a:hover { color: var(--accent2) !important; }

.hfb-post-excerpt {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
  margin-bottom: 20px;
  max-width: 580px;
}

.hfb-post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.hfb-post-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.hfb-tag {
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--dim);
  border: 1px solid var(--border);
  padding: 4px 10px;
  cursor: pointer;
  transition: all .2s;
  border-radius: 1px;
  background: none;
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
}
.hfb-tag:hover { border-color: var(--accent2); color: var(--accent2); }

.hfb-read-more {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent) !important;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: gap .3s;
  font-weight: 400;
}
.hfb-read-more:hover { gap: 14px; }

/* ── PAGINATION ── */
.hfb-pagination {
  display: flex;
  gap: 8px;
  margin-top: 50px;
  justify-content: center;
}
.hfb-page-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: none;
  color: var(--muted);
  font-family: 'Raleway', sans-serif;
  font-size: 12px;
  cursor: pointer;
  transition: all .2s;
  font-weight: 400;
}
.hfb-page-btn:hover, .hfb-page-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(143,184,154,.07);
}

.hfb-divider { height: 1px; background: var(--border); margin: 60px 0; }

/* ── COMMENTS ── */
.hfb-comments-section {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 40px;
}
.hfb-comments-title {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 22px !important;
  font-weight: 400 !important;
  margin-bottom: 30px !important;
  letter-spacing: 1px !important;
}
.hfb-comment-count { font-style: italic; color: var(--dim); font-size: 17px; margin-left: 8px; }

.hfb-comment {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.hfb-comment:last-of-type { border-bottom: none; }

.hfb-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  color: var(--accent);
  flex-shrink: 0;
}
.hfb-comment-name { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent2); margin-bottom: 3px; }
.hfb-comment-date { font-size: 10px; color: var(--dim); margin-bottom: 8px; letter-spacing: 1px; }
.hfb-comment-text { font-size: 13px; color: var(--muted); line-height: 1.65; }

.hfb-no-comments { color: var(--dim); font-style: italic; margin-bottom: 20px; font-size: 13px; }
.hfb-no-posts { color: var(--muted); font-style: italic; padding: 40px 0; text-align: center; font-size: 15px; }

/* ── COMMENT FORM ── */
.hfb-comment-form { margin-top: 30px; }
.hfb-comment-form h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 300;
  margin-bottom: 20px;
  color: var(--muted);
  letter-spacing: 1px;
}

/* WP native comment form overrides */
#hfb-commentform .hfb-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
#hfb-commentform .hfb-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
#hfb-commentform .hfb-form-field label {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dim);
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
}
#hfb-commentform input[type="text"],
#hfb-commentform input[type="email"],
#hfb-commentform textarea {
  background: var(--surface2) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  font-family: 'Raleway', sans-serif !important;
  font-size: 13px !important;
  padding: 12px 16px !important;
  outline: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-weight: 300 !important;
  width: 100% !important;
  resize: vertical !important;
  transition: border-color .3s !important;
}
#hfb-commentform input:focus,
#hfb-commentform textarea:focus {
  border-color: var(--accent) !important;
}
#hfb-commentform .hfb-submit-btn,
#hfb-commentform .submit {
  background: none !important;
  border: 1px solid var(--accent) !important;
  color: var(--accent) !important;
  font-family: 'Raleway', sans-serif !important;
  font-size: 10px !important;
  letter-spacing: 3px !important;
  text-transform: uppercase !important;
  padding: 12px 28px !important;
  cursor: pointer !important;
  transition: all .3s !important;
  font-weight: 400 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin-top: 12px !important;
}
#hfb-commentform .hfb-submit-btn:hover,
#hfb-commentform .submit:hover {
  background: var(--accent) !important;
  color: var(--bg) !important;
}
#hfb-commentform .comment-notes,
#hfb-commentform .logged-in-as { display: none; }

/* ── SIDEBAR ── */
.hfb-sidebar {
  padding-left: 48px;
}

.hfb-widget { margin-bottom: 48px; }

.widget-title,
.hfb-widget .widget-title {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  letter-spacing: 4px !important;
  text-transform: uppercase !important;
  color: var(--muted) !important;
  margin-bottom: 22px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid var(--border) !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  background: none !important;
}
.widget-title::before {
  content: '';
  display: block;
  width: 18px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

/* About */
.hfb-about-widget { text-align: center; }
.about-photo {
  width: 88px; height: 88px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 14px;
  border: 2px solid var(--border);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 8px;
  letter-spacing: 1px;
}
.about-bio { font-size: 12px; color: var(--muted); line-height: 1.7; }

/* Categories in sidebar */
.hfb-cat-list { list-style: none; margin: 0; padding: 0; }
.hfb-cat-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.hfb-cat-list li:last-child { border-bottom: none; }

.hfb-cat-btn-sidebar {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color .2s;
  background: none;
  border: none;
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  padding: 0;
  text-align: left;
}
.hfb-cat-btn-sidebar:hover { color: var(--accent); }

.cat-count {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  color: var(--dim);
  font-style: italic;
}

/* Recent */
.recent-post {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  margin-bottom: 18px;
  cursor: pointer;
  text-decoration: none !important;
}
.recent-thumb { width: 70px; height: 52px; overflow: hidden; flex-shrink: 0; }
.recent-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; display: block; }
.recent-post:hover .recent-thumb img { transform: scale(1.08); }
.recent-post-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 4px;
  color: var(--text);
  transition: color .2s;
}
.recent-post:hover .recent-post-title { color: var(--accent2); }
.recent-post-date { font-size: 10px; color: var(--dim); letter-spacing: 1.5px; text-transform: uppercase; }

/* Tag cloud */
.hfb-tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── LOADING STATE ── */
.hfb-loading {
  text-align: center;
  padding: 50px;
  color: var(--dim);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .hfb-body {
    grid-template-columns: 1fr;
    padding: 40px 20px;
  }
  .hfb-main { padding-right: 0; border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 50px; }
  .hfb-sidebar { padding-left: 0; padding-top: 50px; }
  .hfb-hero { padding: 40px 24px 70px; }
  .hfb-search-bar { padding: 14px 24px; }
  .hfb-scroll-indicator { right: 24px; }
  #hfb-commentform .hfb-form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hfb-hero { min-height: 75vh; }
  .hfb-post-footer { flex-direction: column; align-items: flex-start; }
}
