/* =============================================
   BYN Tasarım - Ana Stil Dosyası
   Tema: Beyaz + Turuncu, sade & modern
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --primary:       #F97316;
  --primary-dark:  #EA580C;
  --primary-light: #FED7AA;
  --primary-pale:  #FFF7ED;
  --white:         #FFFFFF;
  --gray-50:       #F9FAFB;
  --gray-100:      #F3F4F6;
  --gray-200:      #E5E7EB;
  --gray-300:      #D1D5DB;
  --gray-500:      #6B7280;
  --gray-600:      #4B5563;
  --gray-700:      #374151;
  --gray-900:      #111827;
  --success:       #16A34A;
  --danger:        #DC2626;
  --warning:       #D97706;
  --info:          #2563EB;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow:        0 4px 12px rgba(0,0,0,.1);
  --shadow-lg:     0 10px 30px rgba(0,0,0,.12);
  --radius:        12px;
  --radius-sm:     8px;
  --radius-lg:     16px;
  --transition:    .2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  color: var(--gray-700);
  background: var(--gray-50);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }

/* =============================================
   LAYOUT
   ============================================= */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
main { flex: 1; }

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--gray-900);
}
.navbar-brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}
.navbar-brand span { color: var(--primary); }
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.navbar-nav a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--gray-600);
  transition: all var(--transition);
}
.navbar-nav a:hover,
.navbar-nav a.active {
  background: var(--primary-pale);
  color: var(--primary);
}
.navbar-nav .btn-nav-cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: 8px 20px;
}
.navbar-nav .btn-nav-cta:hover {
  background: var(--primary-dark);
  color: var(--white) !important;
}
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--gray-700);
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(249,115,22,.35);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}
.btn-secondary {
  background: var(--gray-100);
  color: var(--gray-700);
  border-color: var(--gray-200);
}
.btn-secondary:hover { background: var(--gray-200); }
.btn-danger {
  background: #FEE2E2;
  color: var(--danger);
  border-color: #FECACA;
}
.btn-danger:hover { background: var(--danger); color: var(--white); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }

/* =============================================
   CARDS
   ============================================= */
.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  box-shadow: 0 8px 22px rgba(17,24,39,.05);
  overflow: hidden;
}
.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-header h2, .card-header h3 {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  color: var(--gray-900);
}
.card-body { padding: 24px; }
.card-footer { padding: 16px 24px; border-top: 1px solid var(--gray-100); background: var(--gray-50); }

/* =============================================
   FORMS
   ============================================= */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 13px;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(249,115,22,.15);
}
textarea.form-control { resize: vertical; min-height: 100px; }
.form-hint { font-size: 12px; color: var(--gray-500); margin-top: 4px; }
.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.form-check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); }

/* =============================================
   ALERTS / FLASH
   ============================================= */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  border-left: 4px solid;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.alert-success { background: #F0FDF4; border-color: var(--success); color: #15803D; }
.alert-error   { background: #FEF2F2; border-color: var(--danger);  color: #B91C1C; }
.alert-warning { background: #FFFBEB; border-color: var(--warning); color: #92400E; }
.alert-info    { background: #EFF6FF; border-color: var(--info);    color: #1D4ED8; }

/* =============================================
   PRODUCT CARDS
   ============================================= */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 24px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(17,24,39,.12);
}
.product-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--gray-100);
}
.product-card-img-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--primary-pale), var(--gray-100));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 42px;
}
.product-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.product-card-category {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 6px;
}
.product-card-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--gray-900);
  margin-bottom: 8px;
  line-height: 1.3;
}
.product-card-desc {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.product-price {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--primary);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  background: linear-gradient(135deg, #111827 0%, #1F2937 100%);
  color: var(--white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(249,115,22,.25) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 600px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(249,115,22,.2);
  color: var(--primary-light);
  border: 1px solid rgba(249,115,22,.4);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
  margin-bottom: 18px;
}
.hero h1 span { color: var(--primary); }
.hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* =============================================
   SECTION HEADERS
   ============================================= */
.section-header {
  text-align: center;
  margin-bottom: 40px;
  padding-top: 60px;
}
.section-header h2 {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--gray-900);
  margin-bottom: 10px;
}
.section-header p { color: var(--gray-500); font-size: 1rem; }
.section-divider {
  width: 48px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
  margin: 12px auto 0;
}

/* =============================================
   TABLE
   ============================================= */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
  background: var(--gray-50);
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--gray-500);
  border-bottom: 1px solid var(--gray-200);
}
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}
tr:hover td { background: var(--gray-50); }

/* =============================================
   BADGES
   ============================================= */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.badge-primary   { background: var(--primary-pale); color: var(--primary-dark); }
.badge-success   { background: #DCFCE7; color: #15803D; }
.badge-warning   { background: #FEF9C3; color: #A16207; }
.badge-danger    { background: #FEE2E2; color: #DC2626; }
.badge-info      { background: #DBEAFE; color: #1D4ED8; }
.badge-gray      { background: var(--gray-100); color: var(--gray-600); }

/* =============================================
   PAGE HEADER
   ============================================= */
.page-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 32px 0;
  margin-bottom: 32px;
}
.page-header h1 {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--gray-900);
}
.page-header p { color: var(--gray-500); margin-top: 4px; }
.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 8px;
}
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { color: var(--gray-300); }

/* =============================================
   ADMIN SIDEBAR
   ============================================= */
.admin-layout { display: flex; gap: 24px; padding: 32px 0; min-height: calc(100vh - 68px - 80px); }
.admin-sidebar {
  width: 240px;
  flex-shrink: 0;
}
.admin-sidebar-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  position: sticky;
  top: 90px;
}
.admin-sidebar-header {
  background: var(--gray-900);
  padding: 16px 20px;
}
.admin-sidebar-header span {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  color: var(--white);
  font-size: .9rem;
}
.admin-nav { list-style: none; padding: 8px 0; }
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: var(--gray-600);
  font-weight: 500;
  font-size: 14px;
  transition: all var(--transition);
}
.admin-nav a:hover,
.admin-nav a.active {
  background: var(--primary-pale);
  color: var(--primary);
}
.admin-nav a .icon { font-size: 16px; width: 20px; text-align: center; }
.admin-content { flex: 1; min-width: 0; }

/* =============================================
   STAT CARDS
   ============================================= */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-bottom: 28px; }
.stat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--primary-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--primary-dark);
  flex-shrink: 0;
}
.icon-muted { color: var(--gray-500); }
.icon-placeholder { color: var(--primary); }
.stat-value { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 1.6rem; color: var(--gray-900); }
.stat-label { font-size: 12px; color: var(--gray-500); font-weight: 600; }

/* =============================================
   MAINTENANCE BANNER
   ============================================= */
.maintenance-banner {
  background: linear-gradient(135deg, #1F2937, var(--gray-900));
  color: var(--white);
  text-align: center;
  padding: 60px 24px;
  border-radius: var(--radius-lg);
  margin: 40px 0;
}
.maintenance-icon { font-size: 56px; margin-bottom: 16px; }
.maintenance-banner h2 { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 1.5rem; margin-bottom: 10px; }
.maintenance-banner p { color: rgba(255,255,255,.7); }

/* =============================================
   AVATAR
   ============================================= */
.avatar {
  border-radius: 50%;
  object-fit: cover;
  background: var(--gray-100);
}
.avatar-sm  { width: 32px; height: 32px; }
.avatar-md  { width: 56px; height: 56px; }
.avatar-lg  { width: 96px; height: 96px; }
.avatar-xl  { width: 120px; height: 120px; }

/* =============================================
   ORDER STATUS
   ============================================= */
.status-received  { background: #EFF6FF; color: #1D4ED8; }
.status-preparing { background: #FEF9C3; color: #A16207; }
.status-shipped   { background: #F0FDF4; color: #15803D; }
.status-delivered { background: #DCFCE7; color: #15803D; }

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: var(--gray-900);
  color: rgba(255,255,255,.6);
  padding: 40px 0 24px;
  margin-top: auto;
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-brand { font-family: 'Nunito', sans-serif; font-weight: 800; color: var(--white); font-size: 1.1rem; }
.footer-brand span { color: var(--primary); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,.5); }
.footer-links a:hover { color: var(--primary); }
.footer-copy { text-align: center; margin-top: 24px; font-size: 12px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; }

/* =============================================
   UTILITY
   ============================================= */
.text-center { text-align: center; }
.text-muted  { color: var(--gray-500); font-size: 13px; }
.mt-1  { margin-top: 8px; }
.mt-2  { margin-top: 16px; }
.mt-3  { margin-top: 24px; }
.mt-4  { margin-top: 32px; }
.mb-1  { margin-bottom: 8px; }
.mb-2  { margin-bottom: 16px; }
.mb-3  { margin-bottom: 24px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 16px; }
.page-section { padding: 60px 0; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .navbar-nav { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--white); padding: 12px 16px; border-bottom: 1px solid var(--gray-200); box-shadow: var(--shadow); z-index: 99; }
  .navbar-nav.open { display: flex; }
  .navbar-toggle { display: flex; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; }
  .admin-sidebar-card { position: static; }
  .hero { padding: 48px 0; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .footer-inner { flex-direction: column; text-align: center; }
}
