/* ============================================
   RESTAWA - Article Page Styles
   ============================================ */

/* Fix header sticky for article pages (no topbar) */
.header {
  position: sticky;
  top: 0 !important;
  z-index: 100;
}

/* Prevent horizontal overflow */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Article Hero */
.article-hero {
  padding: 110px 0 60px;
  background: var(--bg-alt);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.article-hero::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(83, 153, 159, 0.15) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  pointer-events: none;
}

.article-hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(195, 81, 81, 0.1) 0%, transparent 70%);
  bottom: -150px;
  left: -100px;
  pointer-events: none;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
  position: relative;
  z-index: 1;
  font-size: .9rem;
}

.breadcrumbs a {
  color: var(--teal);
  font-weight: 500;
  transition: color .2s;
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--teal-dark);
  text-decoration: underline;
}

.breadcrumbs .sep {
  color: var(--text-muted);
  font-size: .8rem;
}

.breadcrumbs .current {
  color: var(--text-muted);
  font-weight: 500;
  max-width: 250px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 480px) {
  .breadcrumbs {
    font-size: .8rem;
    gap: .3rem;
  }
  .breadcrumbs .current {
    max-width: 150px;
  }
}

.article-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.article-hero .meta {
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.article-hero .intro {
  max-width: 720px;
  margin: 1.5rem auto 0;
  font-size: 1.1rem;
  color: var(--text-soft);
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.article-hero .cta-buttons {
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

/* Article Body */
.article-body {
  padding: 60px 0 80px;
}

.article-body h2 {
  font-size: clamp(1.5rem, 3vw, 1.8rem);
  font-weight: 800;
  color: var(--navy);
  margin: 3rem 0 1rem;
  line-height: 1.3;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin: 2rem 0 .8rem;
}

.article-body p {
  color: var(--text-soft);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.article-body a {
  color: var(--teal);
  font-weight: 600;
  transition: color .2s;
}

.article-body a:hover {
  color: var(--teal-dark);
}

/* Article Card */
.article-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s, transform .3s;
}

.article-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.article-card h3 {
  margin-top: 0;
}

/* Article Table - Responsive */
.article-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.article-table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
}

.article-table th {
  background: var(--navy);
  color: #fff;
  padding: .9rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: .95rem;
  white-space: nowrap;
}

.article-table td {
  padding: .9rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: .95rem;
  color: var(--text-soft);
}

.article-table tr:last-child td {
  border-bottom: none;
}

.article-table tr:nth-child(even) td {
  background: var(--bg-alt);
}

.article-table td:first-child {
  font-weight: 600;
  color: var(--text);
}

/* Article Steps */
.article-steps {
  margin: 2rem 0;
}

.article-step {
  display: flex;
  gap: 1.2rem;
  margin: 1.5rem 0;
  align-items: flex-start;
}

.article-step-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: var(--shadow-teal);
}

.article-step-content h3 {
  margin: 0 0 .5rem;
  font-size: 1.2rem;
}

.article-step-content p {
  margin: 0;
}

/* Article Tip Box */
.article-tip {
  background: linear-gradient(135deg, rgba(83,153,159,.08), rgba(83,153,159,.03));
  border-left: 4px solid var(--teal);
  padding: 1.2rem 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
}

.article-tip strong {
  color: var(--teal-dark);
}

/* Article Alert Box */
.article-alert {
  background: linear-gradient(135deg, rgba(195,81,81,.08), rgba(195,81,81,.03));
  border-left: 4px solid var(--coral);
  padding: 1.2rem 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
}

.article-alert strong {
  color: var(--coral);
}

/* Article Success Box */
.article-success {
  background: linear-gradient(135deg, rgba(34,197,94,.08), rgba(34,197,94,.03));
  border-left: 4px solid #22c55e;
  padding: 1.2rem 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
}

.article-success strong {
  color: #16a34a;
}

/* Article Warning Box */
.article-warn {
  background: linear-gradient(135deg, rgba(245,158,11,.08), rgba(245,158,11,.03));
  border-left: 4px solid #f59e0b;
  padding: 1.2rem 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
}

.article-warn strong {
  color: #d97706;
}

/* Article CTA Section */
.article-cta {
  text-align: center;
  padding: 80px 0;
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}

.article-cta::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(83, 153, 159, 0.12) 0%, transparent 70%);
  top: -150px;
  left: -100px;
  pointer-events: none;
}

.article-cta h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.article-cta > .container > p {
  color: var(--text-soft);
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  position: relative;
  z-index: 1;
}

.article-cta .cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* Article List */
.article-list {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.article-list li {
  color: var(--text-soft);
  line-height: 1.8;
  margin-bottom: .5rem;
  font-size: 1.05rem;
}

.article-list li strong {
  color: var(--text);
}

/* Language Badges */
.lang-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 1.5rem 0;
}

.lang-badge {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff;
  padding: .5rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  box-shadow: var(--shadow-teal);
}

/* Article Timer Highlight */
.article-timer {
  text-align: center;
  margin: 2.5rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border-radius: var(--radius-lg);
  color: #fff;
}

.article-timer-num {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
}

.article-timer-label {
  font-size: 1.1rem;
  opacity: .9;
  margin-top: .5rem;
}

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

@media (max-width: 768px) {
  .article-hero {
    padding: 100px 0 40px;
  }

  .article-hero::before {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
  }

  .article-hero::after {
    width: 250px;
    height: 250px;
  }

  .article-body {
    padding: 40px 0 60px;
  }

  .article-body h2 {
    font-size: 1.5rem;
    margin: 2rem 0 .8rem;
  }

  .article-body h3 {
    font-size: 1.15rem;
  }

  .article-body p {
    font-size: 1rem;
  }

  .article-card {
    padding: 1.2rem;
  }

  .article-step {
    gap: .8rem;
  }

  .article-step-num {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .article-cta {
    padding: 60px 0;
  }

  .article-cta .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .article-cta .cta-buttons .btn {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

  .article-tip,
  .article-alert,
  .article-success,
  .article-warn {
    padding: 1rem 1.2rem;
  }

  .article-timer-num {
    font-size: 2.5rem;
  }
}

.related-card-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: var(--teal);
  font-weight: 600;
  font-size: .9rem;
  margin-top: .8rem;
}

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

@media (max-width: 480px) {
  .article-hero {
    padding: 90px 0 30px;
  }

  .article-hero h1 {
    font-size: 1.7rem;
  }

  .article-hero .intro {
    font-size: 1rem;
  }

  .article-body h2 {
    font-size: 1.3rem;
  }

  .article-body h3 {
    font-size: 1.1rem;
  }

  .article-card {
    padding: 1rem;
    border-radius: var(--radius-sm);
  }

  .article-list li {
    font-size: .95rem;
  }

  .article-table th,
  .article-table td {
    padding: .7rem .8rem;
    font-size: .9rem;
  }
}
