/* ========================================
   Journal Tema - Sade Versiyon
   ======================================== */

:root {
  --j-primary: #1b2a4a;
  --j-accent: #00a8b5;
  --j-accent-hover: #008999;
  --j-light: #f8f9fa;
  --j-border: #dee2e6;
  --j-text: #333;
  --j-text-muted: #6c757d;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--j-text);
}

/* ===== HEADER ===== */
#main-header {
  background: var(--j-primary);
  padding: 12px 0;
}

#logo a {
  display: inline-block;
}

#logo img {
  max-width: 400px;
  height: auto;
}

#logo .logo-text {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
}

/* Arama */
#search .form-control {
  border: none;
  border-radius: 4px 0 0 4px;
  height: 40px;
}

#search .btn-search {
  background: var(--j-accent);
  color: var(--j-primary);
  border: none;
  border-radius: 0 4px 4px 0;
  padding: 0 16px;
  height: 40px;
  font-weight: 600;
}

#search .btn-search {
  color: #fff;
}

#search .btn-search:hover {
  background: var(--j-accent-hover);
  color: #fff;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.header-action-item {
  position: relative;
}

.header-action-link {
  color: #fff !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  white-space: nowrap;
}

.header-action-link:hover {
  color: var(--j-accent) !important;
}

.header-action-link i {
  font-size: 1.2rem;
}

.header-b2b-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(0, 168, 181, 0.14);
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.header-b2b-link:hover {
  background: rgba(0, 168, 181, 0.28);
  border-color: rgba(0, 168, 181, 0.48);
  color: #fff;
}

.header-b2b-link i {
  font-size: 0.95rem;
}

/* Currency */
.currency-link {
  color: #fff !important;
  text-decoration: none;
  font-size: 0.9rem;
}

.currency-link:hover {
  color: var(--j-accent) !important;
}

#form-currency .dropdown-toggle::after,
#form-language .dropdown-toggle::after {
  display: none;
}

#form-currency .dropdown-toggle,
#form-language .dropdown-toggle {
  color: #fff !important;
  text-decoration: none;
  font-size: 0.9rem;
}

#form-currency .dropdown-toggle:hover,
#form-language .dropdown-toggle:hover {
  color: var(--j-accent) !important;
}

/* ===== FOOTER ===== */
#j-footer {
  background: #f5f5f5;
  border-top: 1px solid var(--j-border);
  padding: 30px 0 0;
  margin-top: 30px;
  font-size: 0.9rem;
}

#j-footer h6 {
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--j-primary);
}

#j-footer ul li {
  margin-bottom: 6px;
}

#j-footer a {
  color: var(--j-text-muted);
  text-decoration: none;
}

#j-footer a:hover {
  color: var(--j-primary);
}

/* ===== SOL KOLON KATEGORİLER ===== */
#column-left {
  padding-right: 20px;
}

#column-left .list-group-item {
  border-radius: 0;
  border-left: 3px solid transparent;
  padding: 8px 12px;
  font-size: 0.9rem;
  color: var(--j-text);
  transition: all 0.15s;
}

#column-left .list-group-item:hover {
  background: var(--j-light);
  border-left-color: var(--j-accent);
  color: var(--j-primary);
}

#column-left .list-group-item.active {
  background: var(--j-primary);
  border-left-color: var(--j-accent);
  color: #fff;
  font-weight: 600;
}

/* ===== YATAY ÜST MENÜ (j-top-menu) ===== */
#menu.j-top-menu {
  background: var(--j-accent);
  margin-bottom: 16px;
}

#menu.j-top-menu .j-top-nav {
  gap: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
}

#menu.j-top-menu .nav-link {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 22px;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.18);
}

#menu.j-top-menu .nav-item:first-child .nav-link {
  background: var(--j-primary);
}

#menu.j-top-menu .nav-link:hover,
#menu.j-top-menu .nav-link:focus {
  background: var(--j-accent-hover);
  color: #fff;
}

#menu.j-top-menu .nav-item:first-child .nav-link:hover {
  background: #15213a;
}

#menu.j-top-menu .dropdown-menu {
  border-radius: 0;
  border: 1px solid var(--j-border);
  min-width: 260px;
  padding: 6px 0;
}

#menu.j-top-menu .dropdown-item {
  padding: 8px 16px;
  font-size: 0.9rem;
  color: var(--j-text);
}

#menu.j-top-menu .dropdown-item:hover {
  background: var(--j-light);
  color: var(--j-primary);
}

#menu.j-top-menu .dropdown-submenu {
  position: relative;
}

#menu.j-top-menu .dropdown-submenu > .submenu {
  top: 0;
  left: 100%;
  margin-top: -1px;
  display: none;
}

#menu.j-top-menu .dropdown-submenu:hover > .submenu {
  display: block;
}

/* ===== DİKEY KATEGORİ SIDEBAR (j-cat-side) ===== */
.j-cat-side {
  background: #fff;
  border: 1px solid var(--j-border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
}

.j-cat-side .j-cat-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--j-text);
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--j-border);
  transition: all 0.15s;
}

.j-cat-side li:last-child .j-cat-link {
  border-bottom: none;
}

.j-cat-side .j-cat-icon {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--j-accent);
  font-size: 1rem;
}

.j-cat-side .j-cat-link:hover {
  background: var(--j-light);
  color: var(--j-primary);
  padding-left: 18px;
}

.j-cat-side .j-cat-link:hover .j-cat-icon {
  color: var(--j-primary);
}

/* ===== MOBİL SİDEBAR ===== */
.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1040;
}

.mobile-overlay.open {
  display: block;
}

.mobile-sidebar {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100%;
  background: #fff;
  z-index: 1050;
  transition: left 0.3s;
  overflow-y: auto;
}

.mobile-sidebar.open {
  left: 0;
}

.mobile-sidebar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: var(--j-primary);
  color: #fff;
  font-weight: 600;
}

.mobile-sidebar-head button {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

.mobile-sidebar-body {
  padding: 16px;
}

.mobile-sidebar-body .nav {
  flex-direction: column;
}

.mobile-sidebar-body .nav-link {
  padding: 10px 0;
  border-bottom: 1px solid var(--j-border);
}

/* ===== GENEL ===== */
#content {
  min-height: 400px;
  padding-top: 15px;
}

.btn-primary {
  background: var(--j-primary);
  border-color: var(--j-primary);
}

.btn-primary:hover {
  background: #15213a;
  border-color: #15213a;
}

/* ===== MOBİL ===== */
@media (max-width: 767px) {
  #main-header {
    padding: 8px 0;
  }

  .header-actions {
    gap: 12px;
  }

  #logo img {
    max-width: 220px;
  }
}

