/**
 * NadiKabar.com - Desktop Layout & Grid Architecture (Pixel-Perfect)
 * Modern Dark Mode (Slate-900 / Slate-800)
 */

@media (min-width: 768px) {
  /* Hide Mobile Specific Elements */
  .mobile-only {
    display: none !important;
  }

  /* Desktop Top Bar (WIB Live Clock + Trending Ticker) */
  .top-bar {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0;
    font-size: 0.8125rem;
    color: var(--text-secondary);
  }

  .top-bar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .top-bar__time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-body);
  }

  .top-bar__trending {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .top-bar__trending-label {
    font-weight: 800;
    color: var(--brand-pulse);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
  }

  .top-bar__trending-links {
    display: flex;
    gap: 0.75rem;
  }

  .top-bar__trending-links a {
    color: var(--text-secondary);
    font-size: 0.8125rem;
  }

  .top-bar__trending-links a:hover {
    color: var(--brand-cyan);
    text-decoration: underline;
  }

  /* Sticky Glassmorphism Header */
  .header {
    background: var(--header-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.25s ease;
  }

  .header.is-scrolled {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  }

  .header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
  }

  .header__logo {
    display: flex;
    align-items: center;
  }

  .header__logo img,
  .header__logo svg {
    height: 42px;
    width: auto;
    display: block;
    object-fit: contain;
  }

  .header__nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2rem;
  }

  .header__nav-link {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    position: relative;
    padding: 0.35rem 0;
    transition: color 0.2s ease;
  }

  .header__nav-link:hover,
  .header__nav-link.is-active {
    color: var(--text-primary);
  }

  .header__nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2.5px;
    background-color: var(--brand-pulse);
    border-radius: 2px;
    transition: width 0.25s ease;
  }

  .header__nav-link:hover::after,
  .header__nav-link.is-active::after {
    width: 100%;
  }

  .header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
  }

  .header__action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 9999px;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    cursor: pointer;
  }

  .header__action-btn:hover {
    background-color: var(--bg-surface) !important;
    color: var(--text-primary) !important;
  }

  /* Desktop Multi-Column Portal Grid: 8 cols (Hero/Feed) + 4 cols (Sidebar) */
  .portal-layout {
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 4rem;
  }

  /* Main Headline / Hero Section */
  .hero-news {
    background-color: var(--bg-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, border-color 0.25s ease;
    margin-bottom: 2rem;
  }

  .hero-news:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 229, 255, 0.4);
  }

  .hero-news__media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #070D18;
  }

  .hero-news__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }

  .hero-news:hover .hero-news__media img {
    transform: scale(1.025);
  }

  .hero-news__content {
    padding: 1.75rem;
  }

  .hero-news__title {
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1.3;
    margin: 0.75rem 0;
    color: var(--text-primary);
  }

  .hero-news__title a:hover {
    color: var(--brand-cyan);
  }

  .hero-news__excerpt {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
  }

  .news-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
  }

  .news-meta__author {
    font-weight: 600;
    color: var(--text-secondary);
  }

  /* 2-Column Article Grid */
  .feed-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .news-card {
    background-color: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, border-color 0.2s ease;
  }

  .news-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 229, 255, 0.4);
  }

  .news-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #070D18;
    overflow: hidden;
  }

  .news-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
  }

  .news-card:hover .news-card__media img {
    transform: scale(1.04);
  }

  .news-card__body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }

  .news-card__title {
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0.5rem 0 0.75rem 0;
    color: var(--text-primary);
  }

  .news-card__title a:hover {
    color: var(--brand-cyan);
  }

  .news-card__footer {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-subtle);
  }

  /* Sticky Sidebar (Berita Populer) */
  .sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .sidebar__sticky-wrapper {
    position: sticky;
    top: 5.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
  }

  .sidebar-box {
    background-color: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
  }

  .sidebar-box__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
  }

  .sidebar-box__title {
    font-size: 1.125rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
  }

  .popular-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
  }

  .popular-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
  }

  .popular-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .popular-item__rank {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--brand-pulse);
    line-height: 1;
    min-width: 1.5rem;
  }

  .popular-item__title {
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-body);
  }

  .popular-item__title a:hover {
    color: var(--brand-cyan);
  }

  /* Desktop Article Reading View */
  .article-layout {
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: 2.5rem;
    margin-top: 2rem;
    margin-bottom: 5rem;
  }

  .article-content {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    line-height: 1.85;
    color: var(--text-body);
  }

  .article-content p {
    margin-bottom: 1.5rem;
  }

  .article-content h2, 
  .article-content h3 {
    font-family: var(--font-sans);
    font-weight: 800;
    line-height: 1.35;
    margin: 2.25rem 0 1rem 0;
    color: var(--text-primary);
  }

  .article-content blockquote {
    border-left: 4px solid var(--brand-pulse);
    padding: 1rem 1.5rem;
    margin: 1.75rem 0;
    background-color: var(--bg-surface);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--text-secondary);
  }

  /* Professional Admin Layout */
  .admin-panel {
    display: flex;
    min-height: calc(100vh - 70px);
  }

  .admin-sidebar {
    width: 260px;
    background-color: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .admin-sidebar__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition-smooth);
  }

  .admin-sidebar__link:hover,
  .admin-sidebar__link.is-active {
    background-color: var(--bg-elevated);
    color: var(--text-primary);
  }

  .admin-main {
    flex: 1;
    padding: 2rem;
    background-color: var(--bg-primary);
  }
}
