/* Mimar paneli — sidebar + dashboard (header ile aynı hiza) */

.ag-arch-panel-layout {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  min-height: calc(100dvh - var(--arch-public-header-offset, 114px));
}

@media (min-width: 1024px) {
  .ag-arch-panel-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 28px;
  }
}

/* —— Sidebar —— */
.ag-arch-panel-sidebar {
  display: none;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .ag-architect-panel-v3 .ag-arch-main {
    --ag-arch-sidebar-width: 236px;
    --ag-arch-sidebar-gap: 28px;
    --ag-arch-sidebar-left: 30px;
  }

  .ag-arch-panel-layout {
    padding-left: calc(var(--ag-arch-sidebar-width) + var(--ag-arch-sidebar-gap));
  }

  .ag-arch-panel-sidebar {
    display: flex;
    flex-direction: column;
    width: var(--ag-arch-sidebar-width);
    flex-shrink: 0;
    position: fixed;
    top: var(--arch-public-header-offset, 114px);
    left: var(--ag-arch-sidebar-left);
    z-index: 24;
    height: calc(100dvh - var(--arch-public-header-offset, 114px) - env(safe-area-inset-bottom, 0px));
    max-height: calc(100dvh - var(--arch-public-header-offset, 114px) - env(safe-area-inset-bottom, 0px));
    overflow: hidden;
    padding: 4px 20px 18px 0;
    margin-right: 0;
    border-right: 1px solid #e4e4e7;
    box-sizing: border-box;
    background: #fff;
  }

  .ag-arch-panel-sidebar__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 0 8px;
    scrollbar-width: thin;
  }
}

.ag-arch-panel-nav-label {
  margin: 0 0 8px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #71717a;
}

.ag-arch-panel-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ag-arch-panel-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #52525b;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.ag-arch-panel-nav-item:hover {
  background: rgba(9, 9, 11, 0.05);
  color: #09090b;
}

.ag-arch-panel-nav-item.is-active {
  background: rgba(9, 9, 11, 0.06);
  color: #09090b;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(9, 9, 11, 0.06);
}

.ag-arch-panel-layout svg {
  flex-shrink: 0;
}

.ag-arch-panel-nav-item svg {
  width: 15px;
  height: 15px;
  opacity: 0.65;
}

.ag-arch-panel-layout svg[stroke] {
  stroke-width: 1.5;
}

.ag-arch-panel-nav-item.is-active svg {
  opacity: 1;
}

.ag-arch-panel-help {
  flex-shrink: 0;
  margin-top: auto;
  padding: 12px 8px 2px;
  border-top: 1px solid #f4f4f5;
}

.ag-arch-panel-help-card {
  padding: 14px 12px;
  border-radius: 14px;
  border: 1px solid #e4e4e7;
  background: #fafafa;
}

.ag-arch-panel-help-card__title {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: #09090b;
}

.ag-arch-panel-help-card__text {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
  color: #71717a;
}

.ag-arch-panel-help-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
  padding: 9px 12px;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: #09090b;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.ag-arch-panel-help-card__btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: #52525b;
}

.ag-arch-panel-help-card__btn:hover {
  background: #f4f4f5;
  border-color: #d4d4d8;
}

/* Mobil alt menü */
.ag-arch-panel-mobile-nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 0 0 12px;
  margin-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 1024px) {
  .ag-arch-panel-mobile-nav {
    display: none;
  }
}

.ag-arch-panel-mobile-nav button {
  flex-shrink: 0;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: #f4f4f5;
  color: #52525b;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}

.ag-arch-panel-mobile-nav button.is-active {
  background: #09090b;
  color: #fff;
}

/* —— Main —— */
.ag-arch-panel-main {
  flex: 1;
  min-width: 0;
  width: 100%;
}

.ag-architect-panel-v3 .ag-arch-dashboard {
  max-width: none;
  width: 100%;
  margin: 0;
}

.ag-architect-panel-v3 .ag-arch-main {
  max-width: none;
  width: 100%;
}

.ag-arch-stats-row {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.ag-arch-stats-row.is-visible {
  display: grid;
}

@media (min-width: 768px) {
  .ag-arch-stats-row.is-visible {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 28px;
  }
}

.ag-arch-stat-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid #e4e4e7;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
  color: inherit;
}

.ag-arch-stat-card:hover {
  border-color: rgba(9, 9, 11, 0.16);
  box-shadow: 0 4px 16px rgba(9, 9, 11, 0.06);
}

.ag-arch-stat-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f4f4f5;
  flex-shrink: 0;
  color: #09090b;
}

.ag-arch-stat-card__icon svg {
  width: 15px;
  height: 15px;
}

.ag-arch-stat-card__body {
  min-width: 0;
  flex: 1;
}

.ag-arch-stat-card__label {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: #71717a;
}

.ag-arch-stat-card__value {
  margin: 2px 0 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #09090b;
  line-height: 1.1;
}

.ag-arch-stat-card__desc {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.35;
  color: #a1a1aa;
}

.ag-arch-stat-card__chev {
  flex-shrink: 0;
  margin-top: 4px;
  color: #a1a1aa;
}

/* —— Overview iki kolon —— */
.ag-arch-overview {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 1100px) {
  .ag-arch-overview {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 36%);
    gap: 24px;
    align-items: start;
  }
}

.ag-arch-overview__main {
  border: 1px solid #e4e4e7;
  border-radius: 16px;
  background: #fff;
  padding: 18px 18px 16px;
}

@media (min-width: 1024px) {
  .ag-arch-overview__main {
    padding: 20px 22px 18px;
  }
}

@media (min-width: 1500px) {
  .ag-arch-overview__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.ag-arch-overview__section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.ag-arch-overview__section-head {
  min-height: 28px;
}

.ag-arch-overview__section-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #09090b;
}

.ag-arch-overview__section-head .ag-arch-btn-secondary svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  display: block;
}

.ag-arch-overview__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f4f4f5;
  font-size: 12px;
  font-weight: 500;
  color: #52525b;
}

.ag-arch-overview__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ag-arch-overview__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 900px) {
  .ag-arch-overview__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1400px) {
  .ag-arch-overview__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.ag-arch-overview__footer-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #e4e4e7;
  background: #fafafa;
  font-size: 13px;
  font-weight: 600;
  color: #09090b;
  text-decoration: none;
  transition: background 0.15s ease;
}

.ag-arch-overview__footer-link:hover {
  background: #f4f4f5;
}

.ag-arch-overview__rail {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ag-arch-rail-card {
  border-radius: 14px;
  border: 1px solid #e4e4e7;
  background: #fff;
  overflow: hidden;
}

.ag-arch-rail-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid #f4f4f5;
}

.ag-arch-rail-card__head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #09090b;
}

.ag-arch-rail-card__head a {
  font-size: 12px;
  font-weight: 500;
  color: #52525b;
  text-decoration: none;
}

.ag-arch-rail-card__head a:hover {
  color: #09090b;
  text-decoration: underline;
}

.ag-arch-rail-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ag-arch-rail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #f4f4f5;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.ag-arch-rail-item:last-child {
  border-bottom: 0;
}

.ag-arch-rail-item:hover {
  background: #fafafa;
}

button.ag-arch-rail-item {
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.ag-arch-rail-item__thumb {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f4f4f5;
  overflow: hidden;
  flex-shrink: 0;
}

.ag-arch-rail-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ag-arch-rail-item__copy {
  min-width: 0;
  flex: 1;
}

.ag-arch-rail-item__title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #09090b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ag-arch-rail-item__meta {
  margin: 2px 0 0;
  font-size: 11px;
  color: #71717a;
}

.ag-arch-rail-item__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid #e4e4e7;
  font-size: 10px;
  font-weight: 500;
  background: #f4f4f5;
  color: #52525b;
  white-space: nowrap;
}

.ag-arch-rail-item__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a1a1aa;
  flex-shrink: 0;
}

.ag-arch-rail-empty {
  padding: 20px 16px;
  font-size: 12px;
  line-height: 1.45;
  color: #71717a;
  text-align: center;
}

.ag-arch-rail-new-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% - 32px);
  margin: 12px 16px 16px;
  padding: 9px 12px;
  border: 1px dashed #d4d4d8;
  border-radius: 12px;
  background: #fafafa;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #52525b;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.ag-arch-rail-new-btn__plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
  color: #71717a;
}

.ag-arch-rail-new-btn:hover {
  background: #f4f4f5;
  border-color: #a1a1aa;
  color: #09090b;
}

.ag-arch-overview__tools .ag-arch-btn-secondary svg {
  width: 13px;
  height: 13px;
}

.ag-arch-fav-products__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.ag-arch-fav-products__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #09090b;
}

.ag-arch-fav-products__head .ag-arch-overview__badge {
  margin-top: 4px;
}

.ag-arch-fav-products__head .ag-arch-btn-secondary svg {
  width: 13px;
  height: 13px;
}

.ag-arch-dashboard:not(.ag-arch-tab-view) .ag-arch-panel--main {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.ag-arch-panel-main {
  min-width: 0;
  flex: 1;
}

@keyframes ag-arch-skeleton-pulse {
  0% { opacity: 0.55; }
  50% { opacity: 1; }
  100% { opacity: 0.55; }
}

.ag-arch-skeleton {
  border-radius: 12px;
  background: linear-gradient(90deg, #f4f4f5 0%, #ececee 50%, #f4f4f5 100%);
  animation: ag-arch-skeleton-pulse 1.2s ease-in-out infinite;
}

.ag-arch-skeleton--head {
  height: 28px;
  width: 42%;
  margin-bottom: 16px;
}

.ag-arch-skeleton--card {
  aspect-ratio: 3 / 4;
  min-height: 180px;
}

.ag-arch-skeleton--rail {
  height: 220px;
  border-radius: 14px;
}

.ag-arch-overview__main--skeleton {
  border: 1px solid #f4f4f5;
}

/* Tam sekme görünümü */
.ag-arch-tab-view .ag-arch-panel--main {
  border: 1px solid #e4e4e7;
  border-radius: 16px;
  background: #fff;
  padding: 20px 22px;
}

@media (min-width: 1024px) {
  .ag-arch-tab-view .ag-arch-panel--main {
    padding: 24px 28px;
  }
}

.ag-arch-fav-products__head {
  justify-content: space-between;
}

/* Eski yatay sekmeler gizle */
.ag-arch-tabs-wrap {
  display: none !important;
}

#projects-sidebar {
  display: none !important;
}
