/* ============================================
   coqyz.com Template - Glass Morphism + Neon Gradient
   Same skeleton as rjdif.com but different style
   Core Style: G (Glass Morphism)
   Layout: L (Floating Cards)
   Color: 10 (Neon Gradient)
   List: LD (Card Grid)
   Title: TE (Gradient Text)
   Sidebar: R3, R4, R5
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

:root {
  /* Neon Gradient Colors */
  --neon-cyan: #00f5ff;
  --neon-pink: #ff00ff;
  --neon-purple: #b24bf3;
  --neon-blue: #00d4ff;
  --neon-green: #00ff88;
  --neon-yellow: #ffea00;

  /* Glass Morphism */
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-shadow: rgba(0, 0, 0, 0.3);

  /* Background */
  --dark-bg: #0a0a1a;
  --dark-secondary: #12122a;

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);

  /* Spacing */
  --section-padding: 32px;
  --card-padding: 24px;
  --border-radius: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Grid Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(0, 245, 255, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(255, 0, 255, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(178, 75, 243, 0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

/* ============================================
   HEADER - Glass Morphism Navigation
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 40px;
}

.header-glass {
  background: rgba(10, 10, 26, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 0 0 20px 20px;
  padding: 15px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 45px;
  width: auto;
  border-radius: 10px;
}

.logo-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  display: flex;
  gap: 8px;
}

.nav a {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 25px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.nav a:hover::before,
.nav a.active::before {
  left: 100%;
}

.nav a:hover,
.nav a.active {
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
  background: rgba(0, 245, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
}

/* ============================================
   GRADIENT TEXT - TE Style
   ============================================ */
.gradient-text {
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple), var(--neon-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   SECTION LAYOUT - Same skeleton as rjdif.com
   ============================================ */
.section {
  padding: 100px var(--section-padding) 60px;
  position: relative;
}

.section-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.main-content {
  display: flex;
  flex-direction: column;
}

/* ============================================
   NEWS LIST - Same structure as rjdif.com
   ============================================ */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.news-item {
  display: flex;
  gap: 24px;
  padding: 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  box-shadow: 0 8px 32px var(--glass-shadow);
  transition: all 0.4s ease;
  /* Floating card effect */
  transform: translateY(0);
}

.news-item:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--neon-cyan);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(0, 245, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.news-thumb {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--glass-border);
  transition: border-color 0.3s ease;
}

.news-thumb:hover {
  border-color: var(--neon-pink);
}

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

.news-item:hover .news-thumb img {
  transform: scale(1.1);
}

.news-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-title {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.4;
  transition: all 0.3s ease;
}

.news-title:hover {
  text-shadow: 0 0 20px var(--neon-cyan);
}

.news-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-date {
  color: var(--neon-green);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ============================================
   SIDEBAR - R3, R4, R5
   ============================================ */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 24px;
  box-shadow: 0 8px 32px var(--glass-shadow);
  transition: all 0.4s ease;
}

.sidebar-widget:hover {
  border-color: var(--neon-purple);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(178, 75, 243, 0.2);
}

.widget-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid;
  border-image: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple)) 1;
}

.sidebar-list {
  list-style: none;
}

.sidebar-list li {
  padding: 12px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.sidebar-list li:last-child {
  border-bottom: none;
}

.sidebar-list li:hover {
  padding-left: 8px;
}

.sidebar-list a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: color 0.3s ease;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-list a:hover {
  color: var(--neon-cyan);
}

/* Tags Cloud - R5 */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  display: inline-block;
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.15), rgba(178, 75, 243, 0.15));
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tag:hover {
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.3), rgba(178, 75, 243, 0.3));
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 245, 255, 0.3);
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.pagination a {
  display: inline-block;
  padding: 12px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 25px;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.3s ease;
}

.pagination a:hover,
.pagination a.active {
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.2), rgba(178, 75, 243, 0.2));
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: linear-gradient(180deg, var(--dark-secondary) 0%, var(--dark-bg) 100%);
  border-top: 1px solid var(--glass-border);
  padding: 40px var(--section-padding);
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.footer p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer a {
  color: var(--neon-cyan);
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--neon-pink);
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 120px var(--section-padding) 30px;
  max-width: 1400px;
  margin: 0 auto;
}

.breadcrumb a {
  color: var(--neon-cyan);
  font-weight: 500;
}

.breadcrumb span {
  color: var(--text-secondary);
}

/* ============================================
   ARTICLE - News Detail Page
   ============================================ */
.article {
  max-width: 900px;
  margin: 0 auto;
  padding: 120px var(--section-padding) 60px;
}

.article-header {
  text-align: center;
  margin-bottom: 50px;
}

.article-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 20px;
}

.article-meta {
  display: flex;
  justify-content: center;
  gap: 30px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-secondary);
}

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

.article-content img {
  max-width: 100%;
  border-radius: var(--border-radius);
  margin: 30px 0;
  border: 2px solid var(--glass-border);
}

.article-tags {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid var(--glass-border);
}

.related-news {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 2px solid var(--glass-border);
}

.related-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--neon-cyan);
  margin-bottom: 24px;
}
.article-tags h4 {
  color: var(--neon-cyan);
  margin-bottom: 16px;
  font-size: 1.1rem;
}

/* ============================================
   NEWS GRID - Related News
   ============================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.section-title-small {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .section-inner {
    grid-template-columns: 1fr;
  }

  .main-content {
    order: 1;
  }

  .sidebar {
    order: 2;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .sidebar-widget {
    flex: 1;
    min-width: 280px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 16px;
    --card-padding: 16px;
  }

  .main-content {
    order: 1;
  }

  .header-glass {
    padding: 12px 20px;
    border-radius: 0 0 15px 15px;
  }

  .nav {
    display: none;
  }

  .news-item {
    flex-direction: column;
  }

  .news-thumb {
    width: 100%;
    height: 180px;
  }

  .sidebar-widget {
    min-width: 100%;
  }
}
