/* MuhasebeBlog Laravel application overrides.
   Backend validation, flash messages and dynamic dashboard states belong here. */
:root { --mb-dashboard-border: rgba(23, 50, 77, .12); }
.mb-alert-wrap { position: relative; z-index: 2; }
.mb-auth-body { min-height: 100vh; background: var(--mb-background, #f5f7f9); }
.mb-auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; }
.mb-auth-card { width: min(100%, 520px); background: #fff; border: 1px solid var(--mb-border, #dde3e8); border-radius: 10px; padding: 32px; box-shadow: 0 20px 60px rgba(14,34,53,.12); }
.mb-auth-context { background: #f7f9fb; border-left: 2px solid var(--mb-accent, #c79a3b); color: #4b5f73; margin-bottom: 18px; padding: 12px 14px; }
.mb-auth-context p { margin: 0; }
.mb-auth-context p + p { margin-top: 6px; }
.mb-auth-logo { display: inline-flex; margin-bottom: 24px; color: var(--mb-primary-dark, #0e2235); font-weight: 800; font-size: 28px; text-decoration: none; }
.mb-auth-logo .logo-accent { color: var(--mb-accent, #c79a3b); }
.mb-dashboard-layout { min-height: 100vh; background: var(--mb-background, #f5f7f9); }
.mb-dashboard-shell { display: grid; grid-template-columns: 270px minmax(0, 1fr); min-height: 100vh; }
.mb-dashboard-sidebar { background: var(--mb-primary-dark, #0e2235); color: #fff; padding: 24px 18px; }
.mb-dashboard-sidebar a { color: rgba(255,255,255,.82); display: block; padding: 9px 12px; border-radius: 8px; text-decoration: none; }
.mb-dashboard-sidebar a:hover, .mb-dashboard-sidebar a.active { color: #fff; background: rgba(255,255,255,.10); }
.mb-dashboard-main { min-width: 0; }
.mb-dashboard-header { background: #fff; border-bottom: 1px solid var(--mb-dashboard-border); padding: 16px 24px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.mb-dashboard-content { padding: 24px; }
.mb-stat-card, .mb-panel { background: #fff; border: 1px solid var(--mb-dashboard-border); border-radius: 10px; padding: 20px; box-shadow: 0 8px 24px rgba(14,34,53,.06); }
.mb-status { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #eef2f6; color: var(--mb-text, #1e2933); }
.mb-status-published, .mb-status-approved, .mb-status-active { background: #e8f5ee; color: #146c43; }
.mb-status-submitted, .mb-status-pending { background: #fff4de; color: #9a6408; }
.mb-status-revision_requested, .mb-status-rejected { background: #fdecec; color: #b42318; }
.mb-form-grid { display: grid; gap: 16px; }
.mb-article-body { white-space: pre-line; }
.mb-empty { padding: 32px; border: 1px dashed var(--mb-border, #dde3e8); border-radius: 10px; background: #fff; text-align: center; color: var(--mb-muted, #66737f); }
.mb-sticky-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1050;
    width: 100%;
    background: #0f2d44;
    box-shadow: 0 8px 24px rgba(8, 26, 40, 0.16);
    isolation: isolate;
}

html {
    scroll-padding-top: 150px;
}

@media (max-width: 1199.98px) {
    html {
        scroll-padding-top: 92px;
    }
}

@media print {
    .mb-sticky-header {
        position: static;
        box-shadow: none;
    }
}
.mb-legal-page { max-width: 920px; }
.mb-legal-body h1, .mb-legal-body h2, .mb-legal-body h3 { color: var(--mb-primary-dark, #0e2235); }
.mb-cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1060; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px; border-radius: 10px; background: #0e2235; color: #fff; box-shadow: 0 16px 40px rgba(0,0,0,.22); }
.mb-cookie-banner p { margin: 4px 0 0; color: rgba(255,255,255,.82); }
.mb-cookie-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.mb-cookie-details { color: #fff; }
.mb-cookie-details label { display: block; margin-top: 6px; }
.mb-newsletter-consent { display: block; margin-top: 10px; font-size: 13px; color: var(--mb-muted, #66737f); }
@media (max-width: 991.98px) { .mb-dashboard-shell { grid-template-columns: 1fr; } .mb-dashboard-sidebar { position: static; } .mb-dashboard-content { padding: 16px; } }
@media (max-width: 767.98px) { .mb-cookie-banner { flex-direction: column; align-items: stretch; } .mb-cookie-actions { justify-content: flex-start; } }

/* Public visitor visual polish */
.mb-site-header.site-nav {
  color: #fff;
  background: linear-gradient(180deg, #102f47 0%, #0e2235 100%);
}

.mb-site-header .container {
  min-width: 0;
}

.mb-site-header .site-logo {
  display: inline-flex;
  align-items: baseline;
  flex-shrink: 0;
  gap: 0;
  color: #fff;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .22);
}

.mb-site-header .site-logo:hover,
.mb-site-header .site-logo:focus {
  color: #fff;
}

.mb-site-header .site-logo .logo-accent {
  color: var(--mb-accent, #c79a3b);
}

.mb-header-top {
  padding: 12px 0 10px;
}

.mb-header-nav-row {
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding: 7px 0 9px;
}

.mb-site-header .site-menu.mb-main-menu {
  align-items: center;
  justify-content: center;
  gap: clamp(4px, .7vw, 12px);
  width: 100%;
  margin: 0;
}

.mb-site-header .site-menu.mb-main-menu > li > a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 8px;
  border-radius: 999px;
  color: rgba(255, 255, 255, .9) !important;
  font-size: clamp(11.5px, .86vw, 13px);
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
}

.mb-site-header .site-menu.mb-main-menu > li > a:hover,
.mb-site-header .site-menu.mb-main-menu > li > a:focus,
.mb-site-header .site-menu.mb-main-menu > li.active > a {
  color: var(--mb-accent, #c79a3b) !important;
  background: rgba(255, 255, 255, .08);
}

.mb-site-header .btn-outline-light {
  --bs-btn-color: #fff;
  --bs-btn-border-color: rgba(255, 255, 255, .52);
  --bs-btn-hover-color: var(--mb-primary-dark, #0e2235);
  --bs-btn-hover-bg: #fff;
  --bs-btn-hover-border-color: #fff;
  font-weight: 700;
}

.mb-site-header .mb-writer-btn {
  color: var(--mb-primary-dark, #0e2235);
  background: var(--mb-accent, #c79a3b);
  border-color: var(--mb-accent, #c79a3b);
  font-weight: 800;
}

.mb-site-header .mb-writer-btn:hover,
.mb-site-header .mb-writer-btn:focus {
  color: var(--mb-primary-dark, #0e2235);
  background: #ddb255;
  border-color: #ddb255;
}

.mb-site-header .search-form.mb-header-search {
  width: min(340px, 34vw);
  max-width: none;
}

.mb-site-header .search-form.mb-header-search .form-control {
  min-height: 40px;
  color: #fff;
  background: rgba(255, 255, 255, .11);
  border-color: rgba(255, 255, 255, .36) !important;
}

.mb-site-header .search-form.mb-header-search .form-control::placeholder {
  color: rgba(255, 255, 255, .72);
}

.mb-site-header .search-form.mb-header-search .form-control:focus {
  color: #fff;
  background: rgba(255, 255, 255, .15);
  border-color: rgba(199, 154, 59, .9) !important;
}

.mb-site-header .burger.light,
.mb-mobile-search {
  flex: 0 0 auto;
}

.mb-hero-section {
  padding-top: clamp(40px, 5vw, 68px);
}

.mb-featured-intro {
  align-items: flex-start;
  padding-bottom: 10px;
}

.mb-featured-intro > div {
  max-width: 820px;
}

.mb-featured-intro h1 {
  max-width: 780px;
  margin: 8px 0 12px;
  font-size: clamp(32px, 4.1vw, 52px);
  line-height: 1.06;
}

.mb-featured-intro p {
  max-width: 680px;
  margin: 0;
  color: var(--mb-muted, #66737f);
  font-size: clamp(16px, 1.3vw, 18px);
}

.mb-featured-intro .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.mb-featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.38fr) minmax(0, 1.05fr);
  gap: 24px;
  align-items: stretch;
}

.mb-featured-column {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 24px;
  min-width: 0;
  min-height: 482px;
}

.mb-featured-column-main {
  grid-template-rows: 1fr;
}

.mb-featured-card-link {
  position: relative;
  display: block;
  min-height: 229px;
  overflow: hidden;
  border: 1px solid rgba(14, 34, 53, .08);
  border-radius: 10px;
  background: #102f47;
  box-shadow: 0 14px 34px rgba(14, 34, 53, .1);
  isolation: isolate;
  text-decoration: none;
}

.mb-featured-card-link-main {
  min-height: 482px;
}

.mb-featured-card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(8, 26, 40, .06) 0%, rgba(8, 26, 40, .28) 42%, rgba(8, 26, 40, .82) 100%),
    linear-gradient(90deg, rgba(8, 26, 40, .5), rgba(8, 26, 40, .04));
  pointer-events: none;
}

.mb-featured-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  background-position: center;
  background-size: cover;
  transform: scale(1.01);
  transition: transform .28s ease, filter .28s ease;
}

.mb-featured-card-link:hover .mb-featured-media,
.mb-featured-card-link:focus .mb-featured-media {
  filter: saturate(1.05) contrast(1.03);
  transform: scale(1.045);
}

.mb-featured-copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: block;
  padding: 22px;
  color: #fff;
}

.mb-featured-card-link-main .mb-featured-copy {
  padding: 30px;
}

.mb-featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.mb-featured-meta span {
  color: var(--mb-accent, #c79a3b);
}

.mb-featured-title {
  display: -webkit-box;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-size: clamp(18px, 1.45vw, 22px);
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .34);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow-wrap: break-word;
}

.mb-featured-card-link-main .mb-featured-title {
  font-size: clamp(28px, 2.45vw, 38px);
  line-height: 1.1;
  -webkit-line-clamp: 3;
}

.blog-entry {
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--mb-border, #dde3e8);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(14, 34, 53, .07);
}

.blog-entry .img-link {
  display: block;
  overflow: hidden;
  background: #102f47;
  aspect-ratio: 16 / 9;
}

.blog-entry .img-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.blog-entry:hover .img-link img {
  transform: scale(1.035);
}

.blog-entry > div:not(:first-child) {
  padding: 18px 18px 20px;
}

.blog-entry h3 {
  margin-bottom: 10px;
  font-size: 19px;
  line-height: 1.22;
}

.blog-entry h3 a {
  display: -webkit-box;
  overflow: hidden;
  color: var(--mb-primary-dark, #0e2235);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow-wrap: break-word;
}

.blog-entry p {
  color: var(--mb-muted, #66737f);
}

.blog-entry .date {
  color: var(--mb-secondary, #2f6f8f);
  font-size: 12px;
  font-weight: 800;
}

.mb-author-card {
  overflow: hidden;
  text-align: center;
}

.mb-author-card img {
  display: block;
  width: min(112px, 100%);
  max-width: 100%;
  aspect-ratio: 1;
  height: auto;
  margin: 0 auto 16px;
  border-radius: 50%;
  object-fit: cover;
}

.mb-author-initials {
  display: grid;
  width: 112px;
  max-width: 100%;
  aspect-ratio: 1;
  margin: 0 auto 16px;
  place-items: center;
  border: 1px solid rgba(47, 111, 143, .24);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(23, 50, 77, .08), rgba(199, 154, 59, .16));
  color: var(--mb-primary-dark, #0e2235);
  font-weight: 800;
}

.mb-author-invite-cta {
  text-align: center;
}

.mb-author-invite-cta h2 {
  margin: 8px 0 10px;
}

.mb-author-invite-cta p {
  max-width: 640px;
  margin-right: auto;
  margin-left: auto;
}

.pagination {
  flex-wrap: wrap;
  gap: 6px;
  margin: 28px 0 0;
}

.pagination .page-link {
  display: inline-flex;
  min-width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-color: var(--mb-border, #dde3e8);
  border-radius: 8px;
  color: var(--mb-primary-dark, #0e2235);
  line-height: 1;
}

.pagination .page-link:hover,
.pagination .page-link:focus {
  border-color: var(--mb-secondary, #2f6f8f);
  color: var(--mb-primary-dark, #0e2235);
}

.pagination .page-item.active .page-link {
  border-color: var(--mb-primary, #17324d);
  background-color: var(--mb-primary, #17324d);
  color: #fff;
}

.pagination .page-item.disabled .page-link {
  color: var(--mb-muted, #66737f);
}

.pagination svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.mb-cookie-banner {
  left: 24px;
  right: 24px;
  bottom: 18px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 14px;
  border-radius: 12px;
  gap: 14px;
}

.mb-cookie-banner strong {
  display: block;
  margin-bottom: 2px;
}

.mb-cookie-banner p {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
}

.mb-cookie-actions {
  flex: 0 0 auto;
  gap: 7px;
}

.mb-cookie-actions .btn {
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 700;
}

.mb-cookie-details {
  position: relative;
  font-size: 13px;
}

.mb-cookie-details summary {
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 8px;
  cursor: pointer;
}

.mb-cookie-details[open] {
  flex-basis: 100%;
  padding-top: 6px;
}

@media (max-width: 1199.98px) {
  .mb-header-top {
    padding: 10px 0;
  }

  .mb-featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .mb-featured-column,
  .mb-featured-column-main {
    min-height: 0;
  }

  .mb-featured-column-main {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .mb-featured-card-link-main {
    min-height: 390px;
  }

  .mb-featured-card-link {
    min-height: 224px;
  }
}

@media (max-width: 991.98px) {
  .mb-site-header .site-logo {
    font-size: 22px;
  }

  .mb-cookie-banner {
    align-items: flex-start;
    flex-direction: column;
    max-width: 720px;
  }

  .mb-cookie-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 767.98px) {
  html {
    scroll-padding-top: 88px;
  }

  .mb-featured-intro h1 {
    font-size: 31px;
    line-height: 1.1;
  }

  .mb-featured-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .mb-featured-column,
  .mb-featured-column-main {
    gap: 18px;
    grid-column: auto;
    grid-row: auto;
    grid-template-rows: none;
  }

  .mb-featured-card-link,
  .mb-featured-card-link-main {
    min-height: 270px;
  }

  .mb-featured-card-link-main .mb-featured-copy,
  .mb-featured-copy {
    padding: 20px;
  }

  .mb-featured-card-link-main .mb-featured-title,
  .mb-featured-title {
    font-size: 21px;
    line-height: 1.2;
  }

  .mb-cookie-banner {
    right: 12px;
    left: 12px;
    bottom: 12px;
    padding: 12px;
  }

  .mb-cookie-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .mb-cookie-actions .btn,
  .mb-cookie-details summary {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .mb-header-actions {
    gap: 6px;
  }

  .mb-mobile-search {
    width: 32px;
    height: 32px;
  }

  .mb-featured-card-link,
  .mb-featured-card-link-main {
    min-height: 248px;
  }
}
