/**
 * Admin Panel Base CSS - Brutalist Tasarım
 * Vitrin ve Proje Detay panelleri için base stil
 */

* {
  box-sizing: border-box;
}

/* Fullscreen Overlay Layout */
.admin-panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999998 !important;
  display: none;
  overflow: hidden;
}

.admin-panel-overlay.active {
  display: flex;
  flex-direction: column;
}

.admin-panel-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #ffffff;
  overflow: hidden;
  font-family: 'Google Sans Code', monospace;
}

/* Topbar */
.admin-panel-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  border-bottom: 2px solid #000000;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
  gap: 16px;
  min-height: 48px;
}

.admin-panel-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 16px;
  border: 2px solid #000000;
  background: #ffffff;
  box-shadow: 2px 2px 0 #000000;
  flex-shrink: 0;
  height: 36px;
  box-sizing: border-box;
  font-family: 'Syne Mono', monospace;
}

.admin-panel-brand-text {
  white-space: nowrap;
  display: inline-block;
}

.admin-panel-brand-arc {
  font-size: 16px;
  font-weight: 700;
  color: #000000;
  letter-spacing: 0.5px;
  font-family: 'Syne Mono', monospace;
}

.admin-panel-brand-cap {
  font-size: 16px;
  font-weight: 700;
  color: #ff2b2b;
  letter-spacing: 0.5px;
  font-family: 'Syne Mono', monospace;
}

.admin-panel-brand-separator {
  color: #ff2b2b;
  font-weight: 700;
  font-size: 16px;
  margin: 0 4px;
  font-family: 'Syne Mono', monospace;
}

.admin-panel-brand-subtitle {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #000000;
  letter-spacing: 0.3px;
  font-family: 'Google Sans Code', monospace;
}

/* Navigation Tabs */
.admin-panel-nav {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  flex: 1;
  justify-content: center;
  height: 100%;
}

.admin-nav-radio-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  user-select: none;
  height: auto;
  margin: 0;
  padding: 0;
  vertical-align: middle;
}

.admin-nav-radio-item input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.admin-nav-radio-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border: 1px solid #000000;
  background: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #000000;
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  transform-origin: center center;
  overflow: visible;
  line-height: 1.2;
  white-space: nowrap;
  vertical-align: middle;
  height: auto;
  margin: 0;
  min-height: 28px;
}

/* 3D Cube Effect - Top */
.admin-nav-radio-item span::before {
  content: '';
  position: absolute;
  height: 3px;
  background: #000000;
  bottom: 100%;
  left: 0px;
  right: 0px;
  transform: skew(-45deg, 0) translateX(-1px);
  margin: 0;
  transition: height 0.15s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
  transform-origin: bottom center;
  pointer-events: none;
}

/* 3D Cube Effect - Right */
.admin-nav-radio-item span::after {
  content: '';
  position: absolute;
  background: #000000;
  top: 0px;
  z-index: -1;
  bottom: 0px;
  width: 3px;
  left: 100%;
  transform: skew(0, -45deg) translateY(-1px);
  transition: width 0.15s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: left center;
  pointer-events: none;
}

/* Normal state */
.admin-nav-radio-item span {
  transform: translateY(0) scale(1);
}

/* Hover */
.admin-nav-radio-item:hover span {
  transform: translateY(2.5px) scale(0.98);
}

.admin-nav-radio-item:hover span::before {
  height: 2px;
  opacity: 0.8;
}

.admin-nav-radio-item:hover span::after {
  width: 2px;
  opacity: 0.8;
}

/* Active */
.admin-nav-radio-item:active span {
  transform: translateY(4px) scale(0.96) !important;
  transition: transform 0.08s cubic-bezier(0.4, 0, 0.6, 1) !important;
}

.admin-nav-radio-item:active span::before {
  height: 1.5px !important;
  opacity: 0.6 !important;
  transition: height 0.08s cubic-bezier(0.4, 0, 0.6, 1),
              opacity 0.08s cubic-bezier(0.4, 0, 0.6, 1) !important;
}

.admin-nav-radio-item:active span::after {
  width: 1.5px !important;
  opacity: 0.6 !important;
  transition: width 0.08s cubic-bezier(0.4, 0, 0.6, 1),
              opacity 0.08s cubic-bezier(0.4, 0, 0.6, 1) !important;
}

/* Checked (Active Tab) */
.admin-nav-radio-item input[type="radio"]:checked + span {
  transform: translateY(2.5px) scale(0.98) !important;
  background: #000000;
  color: #ffffff;
}

.admin-nav-radio-item input[type="radio"]:checked + span::before {
  height: 2px !important;
  opacity: 0.8 !important;
}

.admin-nav-radio-item input[type="radio"]:checked + span::after {
  width: 2px !important;
  opacity: 0.8 !important;
}

/* Actions */
.admin-panel-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.admin-panel-btn {
  padding: 6px 12px;
  border: 2px solid #000000;
  background: #ffffff;
  color: #000000;
  font-family: 'Google Sans Code', monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 3px 3px 0 #000000;
  height: auto;
  min-height: auto;
}

.admin-panel-btn:hover {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 #000000;
}

.admin-panel-btn:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 #000000;
}

.admin-panel-btn-close {
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
}

/* Content Area */
.admin-panel-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px;
  background: #ffffff;
}

/* Cards */
.admin-panel-card {
  background: #ffffff !important;
  border: 2px solid #000000;
  margin-bottom: 16px;
  box-shadow: 3px 3px 0 #000000;
}

.admin-panel-card-header {
  background: #ffffff !important;
  color: #000000 !important;
  padding: 10px 14px;
  border-bottom: 2px solid #000000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-panel-card-header h3 {
  margin: 0 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  color: #000000 !important;
}

.admin-panel-card-content {
  padding: 14px;
  background: #ffffff !important;
}

/* Forms */
.admin-panel-form-group {
  margin-bottom: 16px;
}

.admin-panel-label {
  display: block;
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: #000000;
  letter-spacing: 0.5px;
}

.admin-panel-input,
.admin-panel-textarea,
.admin-panel-select {
  width: 100%;
  padding: 8px 12px;
  border: 2px solid #000000;
  background: #ffffff;
  font-family: 'Google Sans Code', monospace;
  font-size: 12px;
  font-weight: 600;
  box-sizing: border-box;
  transition: all 0.15s;
}

.admin-panel-input:focus,
.admin-panel-textarea:focus,
.admin-panel-select:focus {
  outline: none;
  box-shadow: 3px 3px 0 #000000;
  transform: translate(-1px, -1px);
}

.admin-panel-textarea {
  resize: vertical;
  min-height: 100px;
}

/* Buttons */
.admin-panel-btn-primary {
  background: #000000;
  color: #ffffff;
  border: 2px solid #000000;
}

.admin-panel-btn-primary:hover {
  background: #333333;
}

.admin-panel-btn-secondary {
  background: #ffffff;
  color: #000000;
  border: 2px solid #000000;
}

.admin-panel-btn-secondary:hover {
  background: #f5f5f5;
}

/* Grid/List Views */
.admin-panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.admin-panel-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-panel-item {
  background: #ffffff !important;
  border: 2px solid #000000;
  padding: 10px;
  box-shadow: 2px 2px 0 #000000;
  transition: all 0.15s;
  cursor: pointer;
}

.admin-panel-item:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 #000000;
  background: #f5f5f5 !important;
}

/* Loading & Empty States */
.admin-panel-loading,
.admin-panel-empty {
  padding: 32px;
  text-align: center;
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  color: #666666;
  border: 2px solid #000000;
  background: #ffffff !important;
  letter-spacing: 0.5px;
}

.admin-panel-error {
  padding: 48px;
  text-align: center;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  color: #ff0000;
  border: 2px solid #ff0000;
  background: #ffffff;
  letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 1024px) {
  .admin-panel-topbar {
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .admin-panel-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
  }
  
  .admin-nav-radio-item span {
    padding: 8px 12px;
    font-size: 11px;
  }
}

@media (max-width: 768px) {
  .admin-panel-topbar {
    padding: 12px 16px;
  }
  
  .admin-panel-content {
    padding: 16px;
  }
  
  .admin-panel-grid {
    grid-template-columns: 1fr;
  }
}

