/* ===== HILAL MOBILYA THEME ===== */
/* Luxury furniture brand palette from logo */

:root {
  --color-primary:       #3D2E2A;
  --color-secondary:     #5C4033;
  --color-accent:        #C9A882;
  --color-accent-light:  #E8D5BC;
  --color-accent-dark:   #B8956A;
  --color-text-light:    #F5F0EC;
  --color-text-dark:     #2A1F1C;
  --color-bg-page:       #F9F5F0;
  --color-bg-card:       #FFFFFF;
  --color-border:        #D4B896;

  --radius: 4px;
  --shadow: 0 2px 12px rgba(61, 46, 42, 0.08);
  --shadow-hover: 0 6px 24px rgba(61, 46, 42, 0.15);
  --header-top-bar: 38px;
  --header-nav: 72px;

  /* Bootstrap overrides */
  --bs-primary: var(--color-accent);
  --bs-primary-rgb: 201, 168, 130;
}

* { box-sizing: border-box; }

/* ===== TİPOGRAFİ ===== */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--color-text-dark);
  background: var(--color-bg-page);
}
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--color-primary);
  font-weight: 600;
}
p { line-height: 1.7; }

/* ===== BS OVERRIDES ===== */
.btn-primary {
  --bs-btn-bg: var(--color-accent);
  --bs-btn-border-color: var(--color-accent);
  --bs-btn-color: var(--color-primary);
  --bs-btn-hover-bg: var(--color-accent-dark);
  --bs-btn-hover-border-color: var(--color-accent-dark);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--color-accent-dark);
  --bs-btn-active-border-color: var(--color-accent-dark);
  border-radius: var(--radius);
  font-weight: 600;
}
.btn-outline-primary {
  --bs-btn-color: var(--color-accent);
  --bs-btn-border-color: var(--color-accent);
  --bs-btn-hover-bg: var(--color-accent);
  --bs-btn-hover-color: var(--color-primary);
  --bs-btn-active-bg: var(--color-accent-dark);
  --bs-btn-active-border-color: var(--color-accent-dark);
  border-radius: var(--radius);
}
.btn-secondary {
  --bs-btn-bg: var(--color-primary);
  --bs-btn-border-color: var(--color-primary);
  border-radius: var(--radius);
}
.form-control:focus, .form-select:focus {
  border-color: var(--color-accent-dark);
  box-shadow: 0 0 0 .2rem rgba(201,168,130,.25);
}
.form-label { color: var(--color-primary); font-weight: 600; font-size: .875rem; }
a { color: var(--color-accent); transition: color .15s; }
a:hover { color: var(--color-accent-dark); }

/* ===== BOOTSTRAP UTILITY OVERRIDES ===== */
.bg-light { background-color: var(--color-bg-page) !important; }
.bg-primary { background-color: var(--color-accent) !important; }
.bg-dark { background-color: var(--color-primary) !important; }
.text-primary { color: var(--color-accent) !important; }
.text-dark { color: var(--color-text-dark) !important; }
.border-primary { border-color: var(--color-accent) !important; }
.badge.bg-primary { color: var(--color-primary); }
.badge.bg-warning { color: var(--color-primary); }
mark, .mark { background-color: var(--color-accent-light); color: var(--color-primary); padding: 0 4px; }

/* ===== NAVBAR ===== */
.navbar { min-height: var(--header-nav); }
.navbar, .top-bar { background: var(--color-primary) !important; }
.navbar .nav-link {
  font-weight: 500;
  font-size: .875rem;
  padding: .5rem .85rem !important;
  color: var(--color-text-light) !important;
  letter-spacing: .3px;
  transition: color .15s;
  position: relative;
}
.navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: .85rem;
  right: .85rem;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform .2s;
}
.navbar .nav-link:hover::after,
.navbar .nav-link.active::after { transform: scaleX(1); }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--color-accent) !important; background: transparent !important; }
.navbar-brand { color: var(--color-text-light) !important; }
.navbar-brand span { color: var(--color-text-light) !important; }
.navbar-toggler { border-color: transparent !important; }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23C9A882' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Dropdown hover */
@media (min-width: 992px) {
  .dropdown-hover:hover .dropdown-menu { display: block; opacity: 1; visibility: visible; }
  .dropdown-hover .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, visibility .2s;
    margin-top: 0 !important;
    pointer-events: none;
  }
  .dropdown-hover:hover .dropdown-menu { pointer-events: auto; }
}
.dropdown-menu {
  border: none;
  box-shadow: 0 8px 30px rgba(61,46,42,.15);
  border-radius: 0 0 4px 4px;
  padding: .5rem 0;
  min-width: 220px;
  background: #fff;
  border-top: 3px solid var(--color-accent);
}
.dropdown-item {
  font-size: .85rem;
  padding: .55rem 1.25rem;
  color: var(--color-text-dark);
  font-family: 'Inter', sans-serif;
}
.dropdown-item:hover { background: var(--color-accent-light); color: var(--color-primary); }

/* ===== CATEGORY SUB-NAV ===== */
.category-subnav {
  background: var(--color-secondary);
  border-bottom: 2px solid var(--color-accent);
  position: relative;
}
.category-subnav .list-inline {
  overflow-x: auto;
  white-space: nowrap;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.category-subnav .list-inline::-webkit-scrollbar { display: none; }
.category-subnav::before,
.category-subnav::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 32px;
  pointer-events: none;
  z-index: 1;
}
.category-subnav::before {
  left: 0;
  background: linear-gradient(to right, var(--color-secondary) 0%, transparent 100%);
}
.category-subnav::after {
  right: 0;
  background: linear-gradient(to left, var(--color-secondary) 0%, transparent 100%);
}
.category-subnav .list-inline-item a {
  font-size: .78rem;
  font-weight: 500;
  color: var(--color-text-light);
  padding: .35rem .7rem;
  border-radius: var(--radius);
  transition: background .2s, color .2s;
}
.category-subnav .list-inline-item a:hover,
.category-subnav .list-inline-item a.active-cat {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* ===== SLIDER ===== */
#heroCarousel .carousel-item {
    background: var(--color-primary);
    height: 90vh;
    max-height: 90vh;
}
#heroCarousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#heroCarousel .carousel-caption {
    text-align: left;
    bottom: 80px;
}
#heroCarousel .carousel-indicators [data-bs-target] {
    background: var(--color-accent);
}
@media (max-width: 768px) {
    #heroCarousel .carousel-item { height: 40vh; min-height: 220px; max-height: 300px; }
    #heroCarousel .carousel-caption { bottom: 24px; }
}

/* ===== CONTENT CARDS ===== */
.content-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .3s, transform .2s;
  background: var(--color-bg-card);
  height: 100%;
}
.content-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.content-card .card-img-top {
  height: 200px;
  object-fit: cover;
  background: var(--color-accent-light);
}
.content-card .card-body { padding: 1.15rem; }
.content-card .card-title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.content-card .card-text {
  color: var(--color-text-dark);
  font-size: .85rem;
  opacity: .75;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.content-card .card-meta {
  font-size: .78rem;
  color: var(--color-accent-dark);
  padding: .5rem 1.15rem 1.15rem;
}
.content-card .card-meta span { margin-right: .75rem; }

/* ===== SECTION TITLES ===== */
.section-title {
  font-weight: 700;
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-border);
  position: relative;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--color-accent);
}

/* ===== CONTENT DETAIL ===== */
.content-detail .featured-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.content-detail .meta-info { color: var(--color-accent-dark); font-size: .85rem; margin-bottom: 24px; }
.content-detail .meta-info span { margin-right: 1rem; }
.content-detail .content-body { font-size: 1rem; line-height: 1.9; }
.content-detail .content-body h2,
.content-detail .content-body h3 { margin-top: 1.75rem; color: var(--color-primary); }
.content-detail .content-body img { max-width: 100%; height: auto; border-radius: var(--radius); }
.content-detail .tags { margin-top: 24px; }
.content-detail .tags .badge {
  background: var(--color-accent-light);
  color: var(--color-primary);
  margin-right: 4px;
  font-weight: 400;
}

/* ===== BREADCRUMB ===== */
.breadcrumb-section {
  background: var(--color-secondary);
  padding: 14px 0;
  margin-bottom: 32px;
}
.breadcrumb { margin-bottom: 0; font-size: .85rem; }
.breadcrumb-item a { color: var(--color-accent-light); }
.breadcrumb-item.active { color: var(--color-accent); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--color-accent-light); opacity: .5; }

/* ===== PAGINATION ===== */
.pagination .page-link {
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin: 0 2px;
  font-size: .875rem;
}
.pagination .page-link:hover { background: var(--color-accent-light); border-color: var(--color-accent); }
.pagination .page-item.active .page-link {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-primary);
  font-weight: 600;
}

/* ===== FOOTER ===== */
.main-footer {
  background: var(--color-primary);
  color: var(--color-text-light);
  padding: 56px 0 0;
  margin-top: 56px;
}
.main-footer h5 {
  color: var(--color-accent);
  margin-bottom: 1.15rem;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.main-footer a {
  color: var(--color-text-light);
  text-decoration: none;
  font-size: .875rem;
  opacity: .8;
  transition: opacity .2s;
}
.main-footer a:hover { color: var(--color-accent-light); opacity: 1; }
.main-footer .social-icons a {
  display: inline-flex;
  width: 38px; height: 38px;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  margin-right: 6px;
  font-size: .9rem;
  color: var(--color-text-light);
  transition: background .2s, color .2s;
}
.main-footer .social-icons a:hover { background: var(--color-accent); color: var(--color-primary); }
.footer-bottom {
  background: var(--color-text-dark);
  color: var(--color-accent);
  padding: 16px 0;
  margin-top: 40px;
  font-size: .8rem;
}
.footer-bottom a { color: var(--color-accent); }

/* ===== SECTION SPACING ===== */
section { margin-bottom: 48px; }

/* ===== ALTERNATE SECTION BG ===== */
.bg-alt { background: #EDE4D8; }

/* ===== CATEGORY CARD ===== */
.category-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: transform .25s, box-shadow .25s;
  text-decoration: none;
  color: var(--color-primary);
  display: block;
  height: 100%;
}
.category-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  color: var(--color-primary);
}
.category-card .name { font-weight: 600; font-family: 'Playfair Display', serif; }
.category-card .count { font-size: .8rem; color: var(--color-accent-dark); }

/* ===== ANNOUNCEMENT ===== */
.announcement-item {
  padding: 12px 16px;
  border-left: 3px solid var(--color-accent);
  margin-bottom: 8px;
  background: var(--color-accent-light);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.announcement-item .title { font-weight: 600; color: var(--color-primary); }

/* ===== PAGE HEADER ===== */
.page-header {
  background: var(--color-secondary);
  padding: 40px 0;
  margin-bottom: 40px;
}
.page-header h1 { color: var(--color-text-light); margin-bottom: 4px; }
.page-header .page-description { color: var(--color-accent-light); font-size: .9rem; }

/* ===== ADMIN ===== */
.admin-wrapper { display: flex; }
.admin-sidebar {
  width: 250px;
  min-height: calc(100vh - 48px);
  background: var(--color-primary);
  color: var(--color-text-light);
  position: fixed;
  top: 48px; left: 0;
  overflow-y: auto;
  z-index: 1020;
}
.admin-sidebar .nav-link {
  color: var(--color-text-light);
  opacity: .7;
  padding: 11px 20px;
  border-left: 3px solid transparent;
  font-size: .875rem;
  transition: opacity .2s, background .2s;
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
  opacity: 1;
  background: rgba(201,168,130,.1);
  border-left-color: var(--color-accent);
}
.admin-sidebar .nav-link i { width: 20px; margin-right: 8px; }
.admin-content { margin-left: 250px; padding: 24px; width: calc(100% - 250px); }
.admin-header {
  background: #fff;
  color: var(--color-primary);
  padding: 8px 24px;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1031;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border);
}
.admin-header a { color: var(--color-primary); text-decoration: none; font-weight: 600; }
@media (max-width: 768px) {
  .admin-sidebar { width: 100%; position: static; min-height: auto; }
  .admin-content { margin-left: 0; width: 100%; }
}

/* ===== DASHBOARD STAT CARDS ===== */
.stat-card {
  border-radius: var(--radius);
  padding: 20px;
  color: #fff;
  margin-bottom: 16px;
}
.stat-card .number { font-size: 2rem; font-weight: 700; }
.stat-card .label { font-size: .875rem; opacity: .9; }
.stat-card.primary { background: var(--color-primary); }
.stat-card.success { background: #5C4033; }
.stat-card.warning { background: var(--color-accent); color: var(--color-primary); }
.stat-card.info { background: var(--color-accent-dark); }
.stat-card.danger { background: var(--color-text-dark); }

/* ===== SCROLL TOP ===== */
.scroll-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 40px; height: 40px;
  background: var(--color-accent);
  color: var(--color-primary);
  border: none;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  box-shadow: var(--shadow);
}
.scroll-top.visible { display: flex; }
.scroll-top:hover { background: var(--color-accent-dark); color: #fff; }

/* ===== RESPONSIVE ===== */
@media (max-width: 576px) {
  .content-card .card-img-top { height: 180px; }
  .section-title { font-size: 1.25rem; }
}

/* ===== PRINT ===== */
@media print {
  .navbar, .main-footer, .breadcrumb-section, .no-print, .scroll-top { display: none !important; }
}

/* ===== URUN DETAY THUMBNAIL ROW ===== */
#thumbRow { overflow-x: auto !important; scrollbar-width: none; -ms-overflow-style: none; }
#thumbRow::-webkit-scrollbar { display: none; }

/* ===== QUILL EDITOR ===== */
.ql-editor { background: #fff; }

/* ===== CATEGORY OVERFLOW (Diğer menüsü) ===== */
.category-subnav .container { position: relative; }
.category-subnav .list-inline { overflow: hidden; text-align: left; }
.category-subnav .category-more-btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-accent);
  color: var(--color-primary);
  border: none;
  border-radius: var(--radius);
  font-size: .78rem;
  font-weight: 600;
  padding: .35rem .7rem;
  cursor: pointer;
  z-index: 3;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.category-subnav .category-more-btn:hover { background: var(--color-accent-dark); color: #fff; }
.category-subnav .category-more-btn i { display: inline-block; transition: transform .2s; }
.category-subnav .category-more-btn[aria-expanded="true"] i { transform: rotate(180deg); }
.category-subnav .category-more-panel {
  position: absolute;
  right: 0;
  top: calc(100% - 2px);
  z-index: 1050;
  min-width: 200px;
  max-height: 80vh;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-accent);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 8px 30px rgba(61, 46, 42, .15);
  padding: .4rem 0;
  margin: 0;
  list-style: none;
}
.category-subnav .category-more-panel .list-inline-item { display: block; margin: 0; }
.category-subnav .category-more-panel a {
  display: block;
  padding: .5rem 1rem;
  color: var(--color-primary);
  font-size: .85rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.category-subnav .category-more-panel a:hover,
.category-subnav .category-more-panel a.active-cat { background: var(--color-accent-light); color: var(--color-primary); }
