/* ===== GTIP DETAIL ===== */

.gtip-code {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 8px;
}

.gtip-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.gtip-desc {
  margin-bottom: 40px;
  max-width: 800px;
}

/* ===== TREE CARD ===== */

.gtip-tree-card {
  background: #ffffff;
  padding: 28px;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  margin-top: 40px;
}

.gtip-tree-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 18px;
}

.gtip-tree-body ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.gtip-tree-body li {
  position: relative;
  padding-left: 28px;
  margin: 10px 0;
}

.gtip-tree-body li::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 12px;
  width: 6px;
  height: 6px;
  background: #d1d5db;
  border-radius: 50%;
}

.gtip-tree-body ul ul {
  margin-left: 16px;
  border-left: 2px solid #e5e7eb;
  padding-left: 16px;
}

.gtip-tree-body a {
  text-decoration: none;
  color: #1f2937;
  font-weight: 500;
  transition: 0.2s ease;
}

.gtip-tree-body a:hover {
  color: #1e40af;
}

.gtip-tree-body .current-code > a {
  color: #e11d48;
  font-weight: 700;
}

/* Root satırı kart başlığı gibi */
.gtip-tree-card .gtip-tree-body > ul > li.root-code {
  padding: 14px 16px;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  background: #fafafa;
}

/* Root içindeki children listesi kart içinde devam etsin */
.gtip-tree-card .gtip-tree-body > ul > li.root-code > ul {
  margin-top: 12px;
  border-left: 2px solid #e5e7eb;
  padding-left: 16px;
}

/* Root bullet’ını kapat (başlık gibi dursun) */
.gtip-tree-card .gtip-tree-body > ul > li.root-code::before {
  display: none;
}

/* Root link daha güçlü */
.gtip-tree-card .gtip-tree-body > ul > li.root-code > a {
  font-weight: 800;
  font-size: 16px;
  color: #0f172a;
}

/* Child satırları biraz daha “liste” gibi */
.gtip-tree-card .gtip-tree-body li {
  margin: 8px 0;
}

/* ===== Modern Detail Layout ===== */

.gtip-detail-wrap{
  max-width: 1100px;
  margin: 24px auto;
  padding: 0 16px;
}

.gtip-hero-card{
  background:#fff;
  border:1px solid #eef0f3;
  border-radius:16px;
  box-shadow:0 10px 30px rgba(0,0,0,.06);
  padding:28px;
  margin-bottom:18px;
}

.gtip-hero-code{
  font-size:44px;
  font-weight:800;
  letter-spacing:-.5px;
  margin-bottom:10px;
}

.gtip-hero-title{
  font-size:18px;
  font-weight:700;
  color:#111827;
  margin-bottom:10px;
}

.gtip-hero-desc{
  color:#4b5563;
  line-height:1.7;
  max-width: 900px;
}

.gtip-hero-desc.is-muted{
  color:#6b7280;
  font-style: italic;
}

/* GRID */
.gtip-grid{
  display:grid;
  grid-template-columns: 1.50fr .50fr;
  gap:16px;
}

@media (max-width: 900px){
  .gtip-grid{ grid-template-columns: 1fr; }
}

/* Generic Card */
.gtip-card{
  background:#fff;
  border:1px solid #eef0f3;
  border-radius:16px;
  box-shadow:0 10px 24px rgba(0,0,0,.05);
  overflow:hidden;
}

.gtip-card-head{
  padding:18px 20px;
  border-bottom:1px solid #eef0f3;
  background: linear-gradient(180deg, rgba(249,250,251,.9), rgba(255,255,255,1));
}

.gtip-card-title{
  font-size:16px;
  font-weight:800;
  color:#111827;
}

.gtip-card-sub{
  margin-top:4px;
  font-size:13px;
  color:#6b7280;
}

.gtip-card-body{
  padding:18px 20px;
}

/* Tree styling inside card */
.gtip-card .gtip-tree-body ul{
  list-style:none;
  margin:0;
  padding:0;
}

.gtip-card .gtip-tree-body li{
  position:relative;
  padding-left:22px;
  margin:8px 0;
}

.gtip-card .gtip-tree-body li::before{
  content:"";
  position:absolute;
  left:8px;
  top:11px;
  width:6px;
  height:6px;
  background:#d1d5db;
  border-radius:50%;
}

.gtip-card .gtip-tree-body ul ul{
  margin-left:14px;
  padding-left:14px;
  border-left:2px solid #e5e7eb;
}

.gtip-card .gtip-tree-body a{
  text-decoration:none;
  color:#1f2937;
  font-weight:600;
}

.gtip-card .gtip-tree-body a:hover{
  color:#1e40af;
}

.gtip-card .gtip-tree-body .current-code > a{
  color:#e11d48;
}

/* Meta card */
.gtip-meta-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:10px 0;
  border-bottom:1px dashed #e5e7eb;
}

.gtip-meta-row:last-child{
  border-bottom:none;
}

.gtip-meta-k{
  color:#6b7280;
  font-weight:600;
  font-size:13px;
}

.gtip-meta-v{
  color:#111827;
  font-weight:800;
}

.gtip-meta-note{
  margin-top:14px;
  font-size:13px;
  color:#6b7280;
  line-height:1.6;
}

/* ===== SEARCH PAGE (Modern) ===== */

.gtip-search-wrap{
  max-width:1100px;
  margin: 18px auto 40px;
  padding: 0 16px;
}

.gtip-search-bar{
  display:flex;
  gap:12px;
  align-items:stretch;
  margin-bottom: 14px;
}

.gtip-search-input{
  flex:1;
  position:relative;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:14px;
  padding:10px 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.04);
}

.gtip-search-input input{
  width:100%;
  border:0 !important;
  outline:none !important;
  background:transparent;
  font-size:16px;
  padding: 6px 2px 18px;
}

.gtip-search-hint{
  position:absolute;
  left:12px;
  bottom:8px;
  font-size:12px;
  color:#6b7280;
}

.gtip-btn{
  min-width:88px;
  border:0;
  border-radius:14px;
  padding: 12px 16px;
  cursor:pointer;
  background:#111827;
  color:#fff;
  font-weight:700;
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.gtip-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0,0,0,.14);
  opacity:.96;
}

.gtip-note{
  margin: 10px 0 16px;
  padding: 12px 14px;
  border:1px solid #fde68a;
  background:#fffbeb;
  color:#92400e;
  border-radius:12px;
}

.gtip-result-meta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin: 10px 0 14px;
}
.gtip-result-count{
  color:#111827;
  font-size:14px;
}
.gtip-result-count .muted{
  color:#6b7280;
  margin-left:6px;
}

.gtip-groups{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.gtip-group-card{
  background:#fff;
  border:1px solid #eef2f7;
  border-radius:16px;
  box-shadow: 0 10px 28px rgba(0,0,0,.05);
  overflow:hidden;
}

.gtip-group-head{
  padding: 14px 16px;
  display:flex;
  gap:10px;
  align-items:flex-start;
  justify-content:space-between;
  border-bottom: 1px solid #f1f5f9;
}

.gtip-group-title{
  text-decoration:none !important;
  display:flex;
  gap:10px;
  align-items:center;
  color:#0f172a;
  font-weight:800;
}

.gtip-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  background:#eff6ff;
  color:#1d4ed8;
  border:1px solid #dbeafe;
}

.gtip-group-text{
  font-size:16px;
  line-height:1.25;
}

.gtip-group-sub{
  font-size:12px;
  color:#6b7280;
  padding-top:4px;
  white-space:nowrap;
}

.gtip-group-list{
  list-style:none;
  margin:0;
  padding: 10px 10px 12px;
}

.gtip-item{
  margin:0;
  padding:0;
}

.gtip-item-link{
  display:flex;
  gap:8px;
  align-items:baseline;
  padding: 10px 10px;
  border-radius:12px;
  text-decoration:none !important;
  color:#0f172a;
  transition: background .15s ease, transform .15s ease;
}

.gtip-item-link:hover{
  background:#f8fafc;
  transform: translateY(-1px);
}

.gtip-item-code{
  font-weight:800;
  color:#0b3b8f;
  min-width: 120px; /* kodları hizalı gösterir */
}

.gtip-item-sep{
  color:#94a3b8;
  font-weight:700;
}

.gtip-item-title{
  color:#0f172a;
  font-weight:600;
  line-height:1.35;
}

/* Empty state */
.gtip-empty{
  border:1px solid #eef2f7;
  background:#fff;
  border-radius:16px;
  padding: 18px 16px;
  box-shadow: 0 10px 28px rgba(0,0,0,.05);
}
.gtip-empty-title{
  font-weight:900;
  font-size:16px;
  margin-bottom:6px;
}
.gtip-empty-desc{
  color:#6b7280;
  font-size:14px;
}

/* Responsive */
@media (max-width: 640px){
  .gtip-search-bar{ flex-direction:column; }
  .gtip-btn{ width:100%; }
  .gtip-item-link{ align-items:flex-start; flex-wrap:wrap; }
  .gtip-item-code{ min-width:auto; }
}


/* ===== Modern Tree ===== */

.gtip-tree-wrap{
  background:#fff;
  border:1px solid rgba(15,23,42,.08);
  border-radius:16px;
  padding:18px 18px 6px;
  box-shadow:0 10px 30px rgba(15,23,42,.06);
}

.gtip-tree-ul{
  list-style:none;
  margin:0;
  padding:0;
}

.gtip-tree-item{
  position:relative;
  padding-left:5px;
  margin:5px 0;
}

/* connector line */
.gtip-tree-item::before{
  content:"";
  position:absolute;
  left:10px;
  top:14px;
  width:10px;
  height:1px;
  background:rgba(148,163,184,.9);
}

.gtip-tree-item::after{
  content:"";
  position:absolute;
  left:10px;
  top:-8px;
  bottom:-8px;
  width:1px;
  background:rgba(226,232,240,.9);
}

.gtip-tree-root > .gtip-tree-item::after{
  top:14px; /* root'ta çizgiyi yumuşat */
}

.gtip-tree-ul .gtip-tree-ul{
  margin-left:14px;
  padding-left:14px;
  border-left:1px dashed rgba(203,213,225,.9);
}

.gtip-tree-link{
  display:inline-flex;
  align-items:baseline;
  gap:8px;
  text-decoration:none;
  padding:8px 10px;
  border-radius:10px;
  transition:.2s ease;
  color:#0f172a;
}

.gtip-tree-link:hover{
  background:rgba(15,23,42,.04);
}

.gtip-tree-code{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:52px;
  padding:4px 10px;
  border-radius:999px;
  background:rgba(59,130,246,.10);
  color:#1e3a8a;
  font-weight:800;
  font-size:13px;
  letter-spacing:.2px;
}

.gtip-tree-title-detail{
  color:#0f172a;
  font-weight:600;
  line-height:1.35;
  font-size: 12px;
}

.gtip-tree-sep{
  color:rgba(100,116,139,1);
  font-weight:700;
}

/* current highlight */
.gtip-tree-item.is-current > .gtip-tree-link{
  background:rgba(225,29,72,.08);
}

.gtip-tree-item.is-current > .gtip-tree-link .gtip-tree-code{
  background:rgba(225,29,72,.14);
  color:#9f1239;
}

@media (max-width: 768px){
  .gtip-tree-title-detail{ padding:14px 12px 6px; }
  .gtip-tree-item{ padding-left:18px; }
  .gtip-tree-code{ min-width:auto; }
}

/* Fasıl listesi */
.gtip-chapters {
  margin-top: 32px;
}

.gtip-section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 18px;
}

.gtip-chapter-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.04);
}

.gtip-chapter-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  font-weight: 600;
}

.gtip-chapter-summary::-webkit-details-marker {
  display: none;
}

.gtip-chapter-badge {
  min-width: 46px;
  height: 32px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.gtip-chapter-title {
  flex: 1;
  font-size: 17px;
  color: #111827;
}

.gtip-chapter-count {
  font-size: 13px;
  color: #6b7280;
}

.gtip-chapter-body {
  padding: 0 18px 18px;
  border-top: 1px solid #f3f4f6;
}

.gtip-chapter-list {
  list-style: none;
  margin: 0;
  padding: 12px 0 0;
}

.gtip-chapter-list li {
  margin-bottom: 10px;
}

.gtip-chapter-link {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 12px;
  transition: 0.2s ease;
}

.gtip-chapter-link:hover {
  background: #f9fafb;
}

.gtip-chapter-code {
  min-width: 90px;
  font-weight: 700;
  color: #0f3b8f;
}

.gtip-chapter-sep {
  color: #9ca3af;
}

.gtip-chapter-text {
  color: #111827;
  line-height: 1.45;
}