/* ============================================================ */
/* PAGE HEADER CSS                                              */
/* ============================================================ */
/* Company ve Public sayfalarında kullanılan tüm                */
/* sayfa başlığı bileşen stilleri.                              */
/*                                                              */
/* Kullanan dosyalar:                                           */
/*   - /company/include/company-header.php (cover banner)       */
/*   - /public/company/index.php                                */
/*   - /company/media.php                                       */
/*   - /company/company-profile.php                             */
/*                                                              */
/* Bağımlılıklar:                                               */
/*   - CSS değişkenleri: main.css                               */
/*   - Bootstrap 5: grid, badge, btn, vb.                       */
/*                                                              */
/* NOT: .contact-info-*, .social-*, .about-text, .badge-status, */
/* .badge-tag sınıfları main.css'te kalır (global kullanım).    */
/* ============================================================ */

/* ============================================ */
/* 1) COMPANY COVER BANNER                      */
/* ============================================ */

.company-cover-banner {
  position: relative;
  width: 100%;
  margin-bottom: 1.4rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.12), rgba(15, 23, 42, 0.03));
  border: 1px solid var(--border-color);
}

.company-cover-img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.company-cover-banner:hover .company-cover-img {
  transform: scale(1.02);
}

.company-cover-edit-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(var(--black-rgb), 0.65);
  color: var(--color-white);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  backdrop-filter: blur(6px);
  transition: all 0.25s ease;
  border: 1px solid rgba(var(--white-rgb), 0.15);
}

.company-cover-edit-btn:hover {
  background: rgba(var(--accent-rgb), 0.9);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--black-rgb), 0.3);
}

.company-cover-edit-btn i {
  font-size: 1rem;
}

@media (max-width: 768px) {
  .company-cover-img {
    height: 180px;
  }

  .company-cover-edit-btn {
    top: 8px;
    right: 8px;
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  .company-cover-edit-text {
    display: none;
  }
}

/* ============================================ */
/* 2) COMPANY HEADER CARD                       */
/* ============================================ */

.company-header-card {
  margin-top: 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
}

.company-header-card .row {
  padding: 1.5rem;
}

/* Mobilde de aynı hava korunsun */
@media (max-width: 768px) {
  .company-header-card .row {
    padding: 1.25rem;
    flex-direction: column;
    text-align: center;
  }

  .company-header-card .col-md-3.text-end {
    text-align: center !important;
    margin-top: 1rem;
  }
}

/* ============================================ */
/* 3) COMPANY LOGO                              */
/* ============================================ */

.company-logo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 18px rgba(var(--accent-rgb), 0.15);
}

.company-logo-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border: 1px solid var(--border-color);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.05);
}

.company-logo-placeholder i {
  font-size: 3rem;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .company-logo,
  .company-logo-placeholder {
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
  }
}

/* ============================================ */
/* 4) COVER PREVIEW (Panel: media.php)          */
/* ============================================ */

.cover-preview {
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.3s ease;
}

.cover-preview:hover {
  box-shadow: var(--shadow-lg);
}

.cover-preview img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 768px) {
  .cover-preview img {
    max-height: 240px;
  }
}

/* ============================================ */
/* 5) COVER PLACEHOLDER (Panel: media.php)      */
/* ============================================ */

.cover-placeholder {
  background: var(--bg-secondary);
  border: 2px dashed var(--border-color);
  color: var(--text-secondary);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius);
}

.cover-placeholder i {
  opacity: 0.5;
}

/* ============================================ */
/* 6) GALLERY GRID (Panel: media.php)           */
/* ============================================ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  padding: 0;
  margin: 0;
}

/* ============================================ */
/* RESPONSIVE                                   */
/* ============================================ */

@media (max-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================ */
/* 7) GALLERY ITEM (Panel: media.php)           */
/* ============================================ */

.gallery-item {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: all 0.25s ease;
}

.gallery-item:hover {
  border-color: var(--accent-color);
  box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.15);
  transform: translateY(-3px);
}

.gallery-item-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-secondary);
}

.gallery-item-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-item-image img {
  transform: scale(1.05);
}

.gallery-item-actions {
  display: flex;
  gap: 4px;
  padding: 8px;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
}

.gallery-item-actions .btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 6px;
  font-size: 0.75rem;
  border-radius: 6px;
  white-space: nowrap;
}

.gallery-item-actions .btn i {
  font-size: 0.85rem;
}

@media (max-width: 576px) {
  .gallery-item-actions .btn span {
    display: none !important;
  }
}

/* ============================================ */
/* 8) MEDIA SUMMARY CARD (Panel: profile.php)   */
/* ============================================ */

.media-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.media-summary-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  transition: all 0.2s ease;
}

.media-summary-item i {
  font-size: 1.4rem;
  margin-bottom: 0.35rem;
  color: var(--text-secondary);
}

.media-summary-item .media-summary-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  text-align: center;
}

.media-summary-item .media-summary-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 0.15rem;
}

.media-summary-item.has-content {
  border-color: var(--accent-color);
  background: rgba(var(--accent-rgb), 0.06);
}

.media-summary-item.has-content i {
  color: var(--accent-color);
}

.media-summary-item.is-empty {
  opacity: 0.75;
}

/* ========================================================= */
/* 9) PUBLIC GALLERY GRID (Public: public/company/index.php) */
/* ========================================================= */

.public-gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.public-gallery-item {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--border-radius);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  transition: all 0.25s ease;
}

.public-gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--accent-color);
}

.public-gallery-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.public-gallery-item:hover .public-gallery-img {
  transform: scale(1.05);
}

/* ============================================ */
/* RESPONSIVE                                   */
/* ============================================ */

@media (max-width: 1200px) {
  .public-gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .public-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .public-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .public-gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================ */
/* 10) DARK THEME OVERRIDES                     */
/* ============================================ */

[data-theme="dark"] .cover-placeholder {
  background: var(--bg-muted);
  border-color: var(--border-color);
}

[data-theme="dark"] .gallery-item {
  background: var(--bg-card);
}

[data-theme="dark"] .gallery-item-actions {
  background: var(--bg-card);
  border-top-color: var(--border-color);
}

[data-theme="dark"] .media-summary-item {
  background: var(--bg-muted);
}

[data-theme="dark"] .media-summary-item.has-content {
  background: rgba(var(--accent-rgb), 0.12);
}
