/* ========================================
   Tüm Kategoriler Eklentisi - CSS
   ======================================== */

/* ===== NAV BAR ===== */
#allcat-navbar {
  background: #2980b9;
  padding: 0;
  border-bottom: 2px solid #2471a3;
}

#allcat-navbar .container {
  padding: 0;
}

.allcat-nav-inner {
  display: flex;
  align-items: stretch;
}

.allcat-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: background 0.15s;
  white-space: nowrap;
}

.allcat-nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff !important;
}

.allcat-nav-link.allcat-nav-primary {
  background: #1a5276;
}

.allcat-nav-link.allcat-nav-primary:hover {
  background: #154360;
}

.allcat-nav-link i {
  font-size: 0.85rem;
}

/* ===== SAYFA BAŞLIĞI ===== */
.allcat-page-title {
  background: #2c3e50;
  padding: 12px 18px;
  margin-bottom: 20px;
  border-radius: 3px;
}

.allcat-page-title h1 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.5px;
}

/* ===== KATEGORİ GRUBU ===== */
.allcat-group {
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 20px;
  overflow: hidden;
}

.allcat-group-header {
  padding: 8px 14px;
}

.allcat-group-title {
  display: inline-block;
  background: #2980b9;
  color: #fff !important;
  text-decoration: none !important;
  padding: 5px 14px;
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}

.allcat-group-title:hover {
  background: #1a6fa0;
  color: #fff !important;
}

/* ===== ALT KATEGORİ GRID ===== */
.allcat-group-body {
  padding: 0 14px 14px;
}

.allcat-group-body .row {
  border: 1px solid #e8e8e8;
  border-radius: 3px;
  overflow: hidden;
}

.allcat-item {
  display: block;
  padding: 10px 14px;
  color: #555 !important;
  text-decoration: none !important;
  font-size: 0.88rem;
  border-bottom: 1px solid #f0f0f0;
  border-right: 1px solid #f0f0f0;
  transition: all 0.15s;
  min-height: 42px;
}

.allcat-item:hover {
  background: #f0f7ff;
  color: #2980b9 !important;
}

/* Son satırdaki border-bottom kaldır */
.allcat-group-body .row > div:nth-last-child(-n+3) .allcat-item {
  border-bottom: none;
}

/* Sağdaki son sütun border-right kaldır */
.allcat-group-body .row > div:nth-child(3n) .allcat-item {
  border-right: none;
}

/* ===== BREADCRUMB ===== */
#allcat-page .breadcrumb {
  padding: 10px 0;
  margin-bottom: 10px;
  font-size: 0.85rem;
}

/* ===== MOBİL ===== */
@media (max-width: 767px) {
  .allcat-nav-link {
    padding: 10px 14px;
    font-size: 0.85rem;
  }

  .allcat-item {
    font-size: 0.82rem;
    padding: 8px 10px;
  }

  /* Mobilde 2 sütun olunca sağdaki border düzelt */
  .allcat-group-body .row > div:nth-child(3n) .allcat-item {
    border-right: 1px solid #f0f0f0;
  }

  .allcat-group-body .row > div:nth-child(2n) .allcat-item {
    border-right: none;
  }

  .allcat-group-body .row > div:nth-last-child(-n+2) .allcat-item {
    border-bottom: none;
  }
}

@media (max-width: 575px) {
  .allcat-nav-inner {
    overflow-x: auto;
  }
}

/* ===== SAYFA CONTAINER ===== */
#allcat-page {
  padding-top: 15px;
  padding-bottom: 30px;
  min-height: 500px;
}
