/* ═══════════════════════════════════════════════════════════
   PREMIUM TEKNİK ŞARTNAME STYLES (2026 DIGITAL CATALOUGE DESIGN)
   Makedon İnşaat Kurumsal Kimliğine Uygun Teknik Doküman
   ═══════════════════════════════════════════════════════════ */

/* --- Reset & Variables Override --- */
:root {
  --sidebar-width: 280px;
  --bg-dark-blueprint: #07090e;
  --bg-card-blueprint: #0d121f;
  --border-blueprint: rgba(200, 164, 92, 0.12);
  --text-active-gold: #e2c07d;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

body.sartname-body {
  background-color: var(--bg-dark-blueprint) !important;
  color: #e2e8f0;
  font-family: var(--font-body);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  line-height: 1.7;
}

.print-logo-container {
  display: none;
}

/* --- Layout Wrapper --- */
.sartname-wrapper {
  display: flex;
  min-height: 100vh;
}

/* --- LEFT SIDEBAR (STICKY NAV) --- */
.sartname-sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-card-blueprint);
  border-right: 1px solid var(--border-blueprint);
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 25px;
  z-index: 100;
  box-shadow: 10px 0 30px rgba(0,0,0,0.15);
}

.sidebar-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}

.sidebar-logo {
  max-width: 140px;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

.sidebar-badge {
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: var(--gold-primary);
  border: 1px solid var(--gold-primary);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
  text-transform: uppercase;
}

.sidebar-nav {
  flex-grow: 1;
  overflow-y: auto;
  margin-bottom: 25px;
  padding-right: 5px;
}

/* Custom Scrollbar for Sidebar */
.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}
.sidebar-nav::-webkit-scrollbar-thumb {
  background: var(--border-blueprint);
  border-radius: 2px;
}

.sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav li {
  margin-bottom: 8px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  border-radius: var(--radius-md);
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border-left: 2px solid transparent;
}

.sidebar-nav a:hover {
  background: rgba(200, 164, 92, 0.05);
  color: var(--text-primary);
  padding-left: 18px;
}

.sidebar-nav a.active {
  background: rgba(200, 164, 92, 0.08);
  color: var(--text-active-gold);
  border-left-color: var(--gold-primary);
  font-weight: 600;
}

.nav-num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  margin-right: 10px;
  opacity: 0.6;
}

.sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.btn-pdf-download {
  background: var(--gold-gradient);
  color: #07090e;
  border: none;
  padding: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(200, 164, 92, 0.25);
}

.btn-pdf-download:hover {
  background: var(--gold-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 164, 92, 0.35);
}

.pdf-icon {
  width: 18px;
  height: 18px;
}

.copyright {
  font-size: 0.75rem;
  color: #64748b;
  text-align: center;
}

/* --- RIGHT MAIN CONTENT --- */
.sartname-main {
  margin-left: var(--sidebar-width);
  flex-grow: 1;
  padding: 80px 10%;
  max-width: 1200px;
}

/* --- INTRO HERO --- */
.intro-hero {
  margin-bottom: 70px;
  border-bottom: 1px solid var(--border-blueprint);
  padding-bottom: 50px;
}

.intro-accent {
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 15px;
  font-weight: 600;
}

.intro-hero h1 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 25px;
  background: var(--gold-text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.intro-lead {
  font-size: 1.25rem;
  font-weight: 300;
  color: #cbd5e1;
  max-width: 800px;
  margin-bottom: 30px;
}

.quick-meta {
  display: flex;
  gap: 30px;
  font-size: 0.9rem;
  color: #94a3b8;
}

/* --- SPECIFICATION SECTION --- */
.spec-section {
  background-color: var(--bg-card-blueprint);
  border: 1px solid var(--border-blueprint);
  border-radius: var(--radius-xl);
  padding: 45px;
  margin-bottom: 45px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  scroll-margin-top: 40px; /* Offset for smooth scroll */
}

.spec-section:hover {
  transform: translateY(-3px);
  border-color: rgba(200, 164, 92, 0.3);
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.section-hdr {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 35px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  padding-bottom: 20px;
}

.sec-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-primary);
  opacity: 0.8;
}

.section-hdr h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: #f8fafc;
  margin: 0;
  font-weight: 600;
}

/* --- THE 2026 SPECIFICATION GRID --- */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 35px;
}

.grid-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  padding: 15px 20px;
  transition: all 0.3s ease;
}

.grid-item:hover {
  background: rgba(200, 164, 92, 0.03);
}

.grid-label {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
  font-weight: 600;
}

.grid-value {
  display: block;
  font-size: 0.95rem;
  color: var(--gold-light);
  font-weight: 600;
}

.section-desc p {
  color: #cbd5e1;
  font-size: 1.025rem;
  line-height: 1.8;
  margin-bottom: 20px;
  font-weight: 300;
  text-align: justify;
}

.section-desc ul {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  padding: 20px 25px 20px 45px;
  margin-bottom: 25px;
  border-left: 3px solid var(--gold-primary);
}

.section-desc li {
  margin-bottom: 12px;
  color: #94a3b8;
  font-size: 0.95rem;
  font-weight: 300;
}

.section-desc li:last-child {
  margin-bottom: 0;
}

/* --- LOGO LIST --- */
.brand-showcase {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 35px;
  padding-top: 25px;
  border-top: 1px dashed rgba(255,255,255,0.05);
  align-items: center;
}

.brand-logo {
  max-height: 30px;
  max-width: 100px;
  object-fit: contain;
  filter: brightness(0) invert(1) opacity(0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-logo:hover {
  filter: brightness(1) invert(0) opacity(0.9);
  transform: translateY(-2px);
}

/* --- FOOTER IN MAIN --- */
.sartname-main-footer {
  margin-top: 80px;
  text-align: center;
}

.footer-divider {
  height: 1px;
  background: var(--border-blueprint);
  margin-bottom: 30px;
}

.footer-note {
  font-size: 0.85rem;
  color: #64748b;
  max-width: 700px;
  margin: 0 auto 20px;
}

.footer-brand-info {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  color: #94a3b8;
}

.footer-brand-info a {
  color: var(--gold-primary);
  margin-top: 5px;
  font-weight: 600;
}

/* --- PRINT & PDF LAYOUT RULES --- */
@media print {
  @page {
    size: A4 portrait;
    margin: 20mm;
  }

  body.sartname-body {
    /* Pure white background to guarantee print consistency and remove mismatched margins */
    background-color: #ffffff !important;
    background-image: none !important;
    color: #0f172a !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .print-logo-container {
    display: block !important;
    margin-bottom: 50px;
    text-align: left;
  }

  .print-logo {
    max-width: 180px;
    height: auto;
  }

  .sartname-sidebar {
    display: none !important; /* Hide Sidebar on PDF */
  }

  .sartname-main {
    margin-left: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
  }

  /* Cover Page Styling */
  .intro-hero {
    page-break-after: always;
    break-after: page;
    border: 2px solid #C8A45C !important;
    padding: 60px 40px !important;
    margin-top: 20px;
    height: 90vh !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: transparent !important;
    border-radius: 8px;
    box-sizing: border-box;
  }

  .intro-accent {
    color: #8b7340 !important;
    font-weight: 700 !important;
  }

  .intro-hero h1 {
    -webkit-text-fill-color: #0f172a !important;
    color: #0f172a !important;
    font-size: 3.25rem !important;
    border-bottom: 2px solid #C8A45C !important;
    padding-bottom: 25px;
    margin-bottom: 25px;
  }
  
  .intro-lead {
    color: #334155 !important;
    font-size: 1.25rem !important;
    line-height: 1.8 !important;
    font-weight: 400 !important;
  }

  .quick-meta {
    color: #475569 !important;
    margin-top: 30px;
  }
  
  .quick-meta strong {
    color: #0f172a !important;
  }

  /* Specification Sections */
  .spec-section {
    page-break-inside: avoid;
    break-inside: avoid;
    background: transparent !important; /* Transparent background to merge with page body */
    border: none !important;
    border-left: 4px solid #C8A45C !important; /* Gold left border accent */
    border-radius: 0;
    padding: 0 0 0 30px !important; /* Left padding only, no box padding */
    margin-top: 0;
    margin-bottom: 45px !important; /* Generous spacing between stacked sections */
    box-sizing: border-box;
    box-shadow: none !important;
  }

  .section-hdr {
    margin-bottom: 25px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding-bottom: 15px !important;
  }

  .section-hdr h2 {
    color: #0f172a !important;
    font-size: 1.5rem !important;
  }

  .sec-number {
    color: #8b7340 !important;
  }

  .spec-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
  }

  .grid-item {
    border: 1px solid #cbd5e1 !important; /* Clean thin border */
    background: transparent !important; /* Transparent grid items */
    padding: 12px 18px !important;
  }

  .grid-label {
    color: #64748b !important;
  }

  .grid-value {
    color: #8b7340 !important;
  }

  .section-desc p {
    color: #334155 !important;
    font-size: 0.95rem !important;
  }
  
  .section-desc ul {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 3px solid #C8A45C !important;
    padding: 15px 20px 15px 35px !important;
  }

  .section-desc li {
    color: #334155 !important;
    font-size: 0.9rem !important;
  }

  .brand-showcase {
    margin-top: 20px !important;
    padding-top: 15px !important;
    border-top: 1px dashed #cbd5e1 !important;
  }

  .brand-logo {
    filter: grayscale(1) contrast(1.2) opacity(0.8) !important;
    max-height: 25px !important;
  }

  .sartname-main-footer {
    page-break-before: avoid !important;
    break-before: avoid !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    height: auto !important;
    min-height: auto !important;
    margin-top: 40px !important;
    padding-top: 20px !important;
  }
  
  .footer-divider {
    background: #cbd5e1 !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE DESIGN (MOBILE ADAPTATION)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 992px) {
  .sartname-wrapper {
    flex-direction: column;
  }

  .sartname-sidebar {
    position: relative;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-blueprint);
    padding: 30px 20px;
  }

  .sidebar-nav {
    display: none; /* Hide vertical menu on tablet/mobile to save space */
  }

  .sartname-main {
    margin-left: 0;
    padding: 40px 20px;
  }

  .intro-hero h1 {
    font-size: 2.5rem;
  }

  .spec-section {
    padding: 25px;
  }
}
