/*
 * PbootCMS Template for traaw.com
 * ===========================================================
 * Random Seed Parameters:
 * ------------------------------------------------------------
 * Core Style: D (Art Deco - Symmetry + Gold + Geometric Patterns)
 * Layout: C (Three Column Masonry)
 * Color: 5 (Contrast - Fluorescent Pink + Lemon Green)
 * Navigation: N4 (Full Width Nav + Logo Left)
 * List Style: LQ (Left Image Right Text Grid)
 * Title Style: TC (Card Style Title)
 * Shadow: Small (8px)
 * Animation: Fast (0.2s)
 * Hover Offset: Small (4px)
 * Border: Thin (1px)
 * Gradient Angle: 90°
 * Icon Size: Medium (18px)
 * Card Gap: Standard (24px)
 * Background Depth: Medium (0.5)
 * Sidebar Modules: R3 (Latest), R4 (Recommend), R5 (Tags)
 * ===========================================================
 */

/* CSS Variables */
:root {
  /* Contrast Colors - Pink + Green */
  --color-pink: #FF6B9D;
  --color-green: #C8FF00;
  --color-gold: #D4AF37;
  --color-dark: #1a1a2e;
  --color-purple: #6B2D5B;
  --color-yellow: #FFE500;
  --color-white: #FFFFFF;
  --color-cream: #FFF8E7;
  --color-light: rgba(255, 255, 255, 0.9);

  /* Typography */
  --title-size: 4rem;
  --body-size: 16px;
  --line-height: 1.8;
  --paragraph-spacing: 2.5em;

  /* Spacing */
  --container-width: 1200px;
  --sidebar-width: 300px;
  --card-padding: 20px;
  --border-radius: 12px;
  --section-gap: 24px;

  /* Effects */
  --shadow: 8px;
  --shadow-hover: 4px;
  --border-width: 1px;
  --animation-speed: 0.2s;
  --icon-size: 18px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: var(--body-size);
  line-height: var(--line-height);
  color: var(--color-dark);
  background: var(--color-cream);
  min-height: 100vh;
}

/* ============================================
   HEADER - N4: Full Width Nav + Logo Left
   ============================================ */
.pb-header {
  display: flex;
  align-items: center;
  padding: 0 40px;
  height: 80px;
  background: var(--color-dark);
  border-bottom: 3px solid var(--color-gold);
}

.pb-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: 40px;
}

.pb-logo img {
  height: 50px;
  width: auto;
  border-radius: 8px;
  border: 2px solid var(--color-gold);
}

.pb-logo-text {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.pb-nav {
  display: flex;
  flex: 1;
  justify-content: flex-start;
  gap: 8px;
}

.pb-nav a {
  color: var(--color-light);
  font-weight: 500;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  border: var(--border-width) solid transparent;
  transition: all var(--animation-speed) ease;
  position: relative;
}

.pb-nav a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: all var(--animation-speed) ease;
  transform: translateX(-50%);
}

.pb-nav a:hover::before,
.pb-nav a.active::before {
  width: 80%;
}

.pb-nav a:hover {
  color: var(--color-gold);
}

.pb-nav a.active {
  color: var(--color-gold);
  font-weight: 700;
}

/* Mobile Menu Toggle */
.pb-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
}

.pb-menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--color-gold);
  transition: all var(--animation-speed) ease;
}

/* ============================================
   SECTION - Three Column Masonry Layout
   ============================================ */
.pb-section {
  padding: 60px 0;
  position: relative;
}

.pb-section-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.pb-main-content {
  flex: 1;
  min-width: 0;
}

/* ============================================
   SECTION TITLE - TC: Card Style Title
   ============================================ */
.pb-section-title {
  margin-bottom: 30px;
  display: inline-block;
}

.pb-section-title h2 {
  display: inline-block;
  font-size: 1.6rem;
  color: var(--color-dark);
  padding: 12px 30px;
  background: var(--color-white);
  border-left: 5px solid var(--color-pink);
  box-shadow: 0 2px var(--shadow) rgba(255, 107, 157, 0.2);
}

/* ============================================
   NEWS LIST - LQ: Left Image Right Text Grid
   ============================================ */
.pb-news-list {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0;
}

.pb-news-item {
  display: flex;
  grid-column: span 12;
  gap: 0;
  padding: 20px 0;
  border-bottom: 1px dashed var(--color-pink);
  transition: all var(--animation-speed) ease;
}

.pb-news-item:hover {
  background: rgba(255, 107, 157, 0.05);
}

.pb-news-thumb {
  grid-column: span 4;
  padding-right: 20px;
}

.pb-news-thumb img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--border-radius);
  border: 2px solid var(--color-pink);
  transition: all var(--animation-speed) ease;
}

.pb-news-item:hover .pb-news-thumb img {
  border-color: var(--color-green);
  transform: scale(1.02);
}

.pb-news-content {
  grid-column: span 8;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 15px;
  border-left: 2px solid var(--color-green);
}

.pb-news-title {
  font-size: 1.15rem;
  color: var(--color-dark);
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
  transition: color var(--animation-speed) ease;
}

.pb-news-title:hover {
  color: var(--color-pink);
}

.pb-news-desc {
  color: var(--color-purple);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pb-news-meta {
  display: flex;
  gap: 15px;
  font-size: 0.8rem;
  color: var(--color-dark);
  opacity: 0.7;
}

.pb-news-date {
  color: var(--color-pink);
  font-weight: 500;
}

/* ============================================
   SIDEBAR - R3, R4, R5
   ============================================ */
.pb-sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
}

.pb-sidebar-widget {
  background: var(--color-white);
  padding: var(--card-padding);
  border-radius: var(--border-radius);
  border: var(--border-width) solid var(--color-pink);
  box-shadow: 0 2px var(--shadow) rgba(255, 107, 157, 0.15);
}

.pb-widget-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-green);
  position: relative;
}

.pb-widget-title::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--color-pink);
}

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

.pb-sidebar-list li {
  padding: 10px 0;
  border-bottom: 1px dashed rgba(200, 255, 0, 0.3);
  transition: all var(--animation-speed) ease;
}

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

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

.pb-sidebar-list a {
  color: var(--color-dark);
  font-size: 0.9rem;
  transition: color var(--animation-speed) ease;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pb-sidebar-list a:hover {
  color: var(--color-pink);
}

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

.pb-tag {
  display: inline-block;
  padding: 6px 12px;
  background: linear-gradient(135deg, var(--color-pink), var(--color-purple));
  border-radius: 20px;
  color: var(--color-white);
  font-size: 0.8rem;
  transition: all var(--animation-speed) ease;
}

.pb-tag:hover {
  background: linear-gradient(135deg, var(--color-green), var(--color-yellow));
  color: var(--color-dark);
  transform: translateY(-2px);
}

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

.pb-pagination a {
  display: inline-block;
  padding: 10px 18px;
  background: var(--color-white);
  border: var(--border-width) solid var(--color-pink);
  border-radius: var(--border-radius);
  color: var(--color-dark);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all var(--animation-speed) ease;
}

.pb-pagination a:hover,
.pb-pagination a.active {
  background: var(--color-pink);
  border-color: var(--color-pink);
  color: var(--color-white);
}

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

.pb-breadcrumb a {
  color: var(--color-pink);
  font-weight: 500;
}

.pb-breadcrumb a:hover {
  color: var(--color-purple);
}

.pb-breadcrumb span {
  color: var(--color-dark);
  opacity: 0.5;
}

/* ============================================
   ARTICLE - News Detail
   ============================================ */
.pb-article {
  background: var(--color-white);
  padding: 40px;
  border-radius: var(--border-radius);
  border: var(--border-width) solid var(--color-pink);
  box-shadow: 0 4px var(--shadow) rgba(255, 107, 157, 0.15);
}

.pb-article-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--color-green);
  text-align: center;
}

.pb-article-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.4;
  margin-bottom: 15px;
}

.pb-article-meta {
  display: flex;
  justify-content: center;
  gap: 30px;
  color: var(--color-purple);
  font-size: 0.9rem;
}

.pb-article-body {
  padding: 25px 0;
  border-top: 1px dashed var(--color-pink);
  border-bottom: 1px dashed var(--color-pink);
  margin: 25px 0;
}

.pb-article-content {
  font-size: 1.05rem;
  line-height: 2.2;
  color: var(--color-dark);
}

.pb-article-content p {
  margin-bottom: var(--paragraph-spacing);
}

.pb-article-content img {
  max-width: 100%;
  border-radius: var(--border-radius);
  margin: 25px 0;
  border: 2px solid var(--color-green);
}

.pb-article-tags {
  margin-top: 30px;
  padding-top: 20px;
}

.pb-article-tags h4 {
  color: var(--color-pink);
  margin-bottom: 12px;
  font-size: 1rem;
}

/* ============================================
   FOOTER
   ============================================ */
.pb-footer {
  background: var(--color-dark);
  color: var(--color-light);
  padding: 50px 20px 30px;
  margin-top: 80px;
  border-top: 3px solid var(--color-gold);
}

.pb-footer-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  text-align: center;
}

.pb-footer p {
  color: var(--color-light);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.pb-footer a {
  color: var(--color-gold);
  transition: color var(--animation-speed) ease;
}

.pb-footer a:hover {
  color: var(--color-green);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .pb-section-inner {
    flex-direction: column;
  }

  .pb-sidebar {
    width: 100%;
  }

  .pb-news-thumb {
    grid-column: span 5;
  }

  .pb-news-content {
    grid-column: span 7;
  }
}

@media (max-width: 768px) {
  :root {
    --title-size: 2.5rem;
    --body-size: 15px;
    --card-padding: 15px;
  }

  .pb-header {
    padding: 0 20px;
  }

  .pb-nav {
    display: none;
  }

  .pb-menu-toggle {
    display: flex;
  }

  .pb-nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--color-dark);
    padding: 20px;
    border-bottom: 3px solid var(--color-gold);
  }

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

  .pb-news-thumb,
  .pb-news-content {
    grid-column: span 12;
  }

  .pb-news-thumb {
    padding-right: 0;
    margin-bottom: 15px;
  }

  .pb-news-content {
    padding-left: 0;
    border-left: none;
    border-top: 2px solid var(--color-green);
    padding-top: 15px;
  }

  .pb-article {
    padding: 25px;
  }

  .pb-article-title {
    font-size: 1.5rem;
  }
}
