/* ==========================================================================
   IRMARINETECH - Presentations & Catalogs Page CSS (EN)
   (Matching Documents Page Style)
   ========================================================================== */

:root {
  --pres-navy: #373f50;
  --pres-navy-dark: #282e3a;
  --pres-blue: #0088cc;
  --pres-blue-hover: #0073ad;
  --pres-bg-light: #f8fafc;
  --pres-card-bg: #ffffff;
  --pres-border: #e2e8f0;
  --pres-text-dark: #0f172a;
  --pres-text-muted: #64748b;
  --pres-radius: 12px;
  --pres-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  --pres-shadow-hover: 0 12px 28px rgba(15, 23, 42, 0.12);
  --pres-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-pres-hero-compact {
  background: var(--pres-navy);
  color: #ffffff;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

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

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

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

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

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

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

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

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

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

/* Live Search Box */
.ir-pres-hero-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ir-pres-search-box {
  position: relative;
  width: 290px;
  max-width: 100%;
}

.ir-pres-search-box input {
  width: 100%;
  height: 38px;
  padding: 8px 36px 8px 34px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 13px;
  outline: none;
  transition: var(--pres-trans);
}

.ir-pres-search-box input:focus {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.25);
}

.ir-pres-search-box input::placeholder {
  color: #94a3b8;
}

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

.ir-pres-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
}

/* 2. SUBBAR INFO */
.ir-pres-subbar {
  background: var(--pres-bg-light);
  border-bottom: 1px solid var(--pres-border);
  padding: 10px 0;
  font-size: 13px;
  color: var(--pres-text-muted);
}

.ir-pres-subbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ir-pres-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: var(--pres-text-dark);
}

.ir-pres-count-badge strong {
  color: var(--pres-blue);
}

/* 3. MAIN SECTION & GRID */
.ir-pres-section {
  background: #f1f5f9;
  padding: 36px 0 60px;
  min-height: 480px;
}

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

/* Presentation Card (Matches Dökümanlar Card) */
.ir-pres-card {
  background: var(--pres-card-bg);
  border: 1px solid var(--pres-border);
  border-radius: var(--pres-radius);
  box-shadow: var(--pres-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--pres-trans);
  position: relative;
}

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

/* Cover / Thumbnail */
.ir-pres-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-pres-cover a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

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

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

/* File Format Badge (Identical to Dökümanlar) */
.ir-pres-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);
  background: #fee2e2;
  color: #b91c1c;
}

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

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

.ir-pres-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.ir-pres-title a:hover {
  color: var(--pres-blue);
}

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

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

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

.ir-pres-btn:hover {
  background: var(--pres-blue);
  color: #ffffff;
}

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

/* Empty State */
.ir-pres-empty {
  display: none;
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border-radius: var(--pres-radius);
  border: 1px dashed var(--pres-border);
  grid-column: 1 / -1;
}

.ir-pres-empty svg {
  width: 48px;
  height: 48px;
  color: #94a3b8;
  margin-bottom: 12px;
}

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

.ir-pres-empty p {
  font-size: 13px;
  color: var(--pres-text-muted);
  margin: 0;
}

@media (max-width: 768px) {
  .ir-pres-hero-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .ir-pres-search-box {
    width: 100%;
  }
  .ir-pres-grid {
    grid-template-columns: 1fr;
  }
}
