/* ============================================================
   medya-page.css — Media Page Styles (News & Videos)
   ============================================================ */

/* ── Media Top Navigation (Header-like) ───────────────────────── */
.media-top-nav {
  background: var(--color-white);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.media-top-nav .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.media-top-nav__list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 32px;
  justify-content: center; /* Center the top menu */
}

.media-top-nav__link {
  display: block;
  padding: 20px 0;
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.media-top-nav__link:hover {
  color: var(--color-brand-primary);
}

.media-top-nav__link.is-active {
  color: var(--color-brand-primary);
}

.media-top-nav__link.is-active::after {
  content: '';
  position: absolute;
  bottom: -1px; /* Align with the border of the container */
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-brand-primary);
  border-radius: 3px 3px 0 0;
}

/* ── Media Sidebar ───────────────────────────────────────────── */
.media-sidebar-title {
  font-family: var(--font-primary);
  font-size: 1.25rem;
  color: var(--color-brand-darker);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-brand-medium);
}

.media-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.media-sidebar-btn {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 12px 16px;
  font-family: var(--font-primary);
  font-size: 1rem;
  color: #64748b;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.media-sidebar-btn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--color-brand-primary);
  transition: height 0.3s ease;
  border-radius: 2px;
}

.media-sidebar-btn:hover {
  background: #f8fafc;
  color: var(--color-brand-primary);
  padding-left: 20px;
}

.media-sidebar-btn:hover::before {
  height: 60%;
}

.media-sidebar-btn.is-active {
  background: var(--color-brand-primary);
  color: var(--color-white);
  font-weight: 600;
  padding-left: 16px; /* Reset padding to keep text centered/normal */
  box-shadow: 0 4px 12px rgba(20, 61, 141, 0.2);
}

.media-sidebar-btn.is-active::before {
  display: none; /* Hide the line indicator for active state */
}

/* Hide sidebar logic when on videos tab */
#media-sidebar.is-hidden {
  display: none;
}

.inner-layout--full {
  grid-template-columns: 1fr;
}

/* ── Media Grid (For Videos) ─────────────────────────────────── */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.media-grid--videos {
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

/* ── Yazılı Basın (Print Grid) ───────────────────────────────── */
.news-print-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.news-print-item {
  position: relative;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  aspect-ratio: 3/4;
  background: #f8fafc;
}

.news-print-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-print-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.news-print-item:hover img {
  transform: scale(1.05);
}

.news-print-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 61, 141, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.news-print-item:hover .news-print-overlay {
  opacity: 1;
}

.news-print-overlay i {
  color: var(--color-white);
  font-size: 2.5rem;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.news-print-item:hover .news-print-overlay i {
  transform: scale(1);
}

/* ── Web Linkleri (Clean List) ───────────────────────────────── */
.news-web-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-web-item {
  display: flex;
  align-items: center;
  padding: 24px;
  background: var(--color-white);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.news-web-item:hover {
  background: #f8fafc;
  border-color: var(--color-brand-light);
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.news-web-item__date {
  font-family: var(--font-primary);
  font-size: 0.9rem;
  color: #94a3b8;
  width: 140px;
  flex-shrink: 0;
}

.news-web-item__title {
  font-family: var(--font-primary);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-brand-dark);
  margin: 0;
  flex-grow: 1;
  transition: color 0.3s ease;
}

.news-web-item:hover .news-web-item__title {
  color: var(--color-brand-primary);
}

.news-web-item__icon {
  font-size: 1.25rem;
  color: var(--color-brand-light);
  transition: transform 0.3s ease, color 0.3s ease;
}

.news-web-item:hover .news-web-item__icon {
  color: var(--color-brand-primary);
  transform: translateX(5px);
}

/* ── Video Card ──────────────────────────────────────────────── */
.video-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  border-color: var(--color-brand-light);
}

.video-card__link {
  display: block;
  text-decoration: none;
}

.video-card__thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}

.video-card__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: all 0.5s ease;
}

.video-card:hover .video-card__thumbnail img {
  opacity: 0.6;
  transform: scale(1.05);
}

.video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--color-white);
  font-size: 4rem;
  opacity: 0.9;
  transition: all 0.3s ease;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

.video-card:hover .video-card__play {
  transform: translate(-50%, -50%) scale(1.1);
  color: var(--color-brand-light);
}

.video-card__content {
  padding: 20px;
}

.video-card__title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-brand-dark);
  margin: 0;
  line-height: 1.4;
}

/* ── Hide items based on filter ──────────────────────────────── */
.media-card.is-hidden {
  display: none !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .media-grid {
    grid-template-columns: 1fr;
  }
}
