/* ==========================================================================
   IRMARINETECH - Dökümanlar & Kataloglar Sayfası CSS (TR)
   ========================================================================== */

:root {
  --doc-navy: #373f50;
  --doc-navy-dark: #282e3a;
  --doc-blue: #0088cc;
  --doc-blue-hover: #0073ad;
  --doc-bg-light: #f8fafc;
  --doc-card-bg: #ffffff;
  --doc-border: #e2e8f0;
  --doc-text-dark: #0f172a;
  --doc-text-muted: #64748b;
  --doc-radius: 12px;
  --doc-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  --doc-shadow-hover: 0 12px 28px rgba(15, 23, 42, 0.12);
  --doc-trans: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Zero Top Space Reset */
html, body {
  margin: 0 !important;
  padding: 0 !important;
}

.page-wrapper {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.page-wrapper > header,
header,
.topbar {
  margin-top: 0 !important;
}

/* 1. SLIM & COMPACT HERO HEADER */
.ir-doc-hero-compact {
  background: var(--doc-navy);
  color: #ffffff;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.ir-doc-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.ir-doc-hero-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ir-doc-breadcrumb-compact {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #94a3b8;
  flex-wrap: wrap;
}

.ir-doc-breadcrumb-compact a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ir-doc-breadcrumb-compact a:hover {
  color: #ffffff;
}

.ir-doc-breadcrumb-compact svg {
  width: 13px;
  height: 13px;
}

.ir-doc-breadcrumb-sep {
  opacity: 0.5;
}

.ir-doc-breadcrumb-current {
  color: #ffffff;
  font-weight: 500;
}

.ir-doc-title-compact {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.3px;
}

.ir-doc-hero-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ir-doc-search-compact {
  position: relative;
  width: 290px;
}

.ir-doc-search-compact input {
  width: 100%;
  height: 38px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 0 36px 0 38px;
  color: #ffffff;
  font-size: 13px;
  transition: var(--doc-trans);
  outline: none;
}

.ir-doc-search-compact input::placeholder {
  color: #94a3b8;
}

.ir-doc-search-compact input:focus {
  background: rgba(255, 255, 255, 0.14);
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.ir-doc-search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: #94a3b8;
  pointer-events: none;
}

.ir-doc-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  display: none;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.ir-doc-search-clear:hover {
  color: #ffffff;
}

/* 2. STATS & INFO BAR */
.ir-doc-info-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--doc-border);
  padding: 10px 0;
}

.ir-doc-info-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--doc-text-muted);
}

.ir-doc-count-badge {
  font-weight: 600;
  color: var(--doc-navy);
}

/* 3. DOCUMENTS MAIN GRID */
.ir-doc-section {
  padding: 36px 0 60px 0;
  background: var(--doc-bg-light);
  min-height: 520px;
}

.ir-doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* 4. DOCUMENT CARD */
.ir-doc-card {
  background: var(--doc-card-bg);
  border: 1px solid var(--doc-border);
  border-radius: var(--doc-radius);
  box-shadow: var(--doc-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--doc-trans);
  position: relative;
}

.ir-doc-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--doc-shadow-hover);
  border-color: #cbd5e1;
}

/* Cover / Thumbnail */
.ir-doc-cover {
  position: relative;
  height: 220px;
  background: #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-bottom: 1px solid #f1f5f9;
}

.ir-doc-cover a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.ir-doc-cover-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.25s ease;
}

.ir-doc-card:hover .ir-doc-cover-img {
  transform: scale(1.02);
}

/* File Format Badge */
.ir-doc-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.ir-doc-badge-pdf {
  background: #fee2e2;
  color: #b91c1c;
}

.ir-doc-badge-word {
  background: #e0e7ff;
  color: #3730a3;
}

.ir-doc-badge-excel {
  background: #dcfce7;
  color: #15803d;
}

.ir-doc-badge-zip {
  background: #fef3c7;
  color: #b45309;
}

.ir-doc-badge-other {
  background: #f1f5f9;
  color: #475569;
}

/* Card Body */
.ir-doc-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ir-doc-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--doc-navy);
  margin-bottom: 6px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}

.ir-doc-desc {
  font-size: 12.5px;
  color: var(--doc-text-muted);
  line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* Card Footer / Action Button */
.ir-doc-footer {
  padding: 12px 18px 16px 18px;
  border-top: 1px solid #f1f5f9;
}

.ir-doc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  background: var(--doc-navy);
  color: #ffffff;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--doc-trans);
}

.ir-doc-btn:hover {
  background: var(--doc-blue);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 136, 204, 0.25);
}

.ir-doc-btn svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s ease;
}

.ir-doc-btn:hover svg {
  transform: translateY(2px);
}

/* 5. NO RESULTS STATE */
.ir-doc-no-results {
  display: none;
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border-radius: var(--doc-radius);
  border: 1px dashed var(--doc-border);
  margin-top: 20px;
}

.ir-doc-no-results svg {
  width: 44px;
  height: 44px;
  color: #94a3b8;
  margin-bottom: 12px;
}

.ir-doc-no-results h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--doc-text-dark);
  margin-bottom: 6px;
}

.ir-doc-no-results p {
  font-size: 13.5px;
  color: var(--doc-text-muted);
  margin-bottom: 0;
}

/* 6. RESPONSIVE MEDIA QUERIES */
@media (max-width: 991px) {
  .ir-doc-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
  }
}

@media (max-width: 767px) {
  .ir-doc-hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .ir-doc-hero-right {
    width: 100%;
  }
  .ir-doc-search-compact {
    width: 100%;
  }
  .ir-doc-title-compact {
    font-size: 19px;
  }
  .ir-doc-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .ir-doc-cover {
    height: 170px;
  }
}

