/* ==========================================================================
   COMPONENTS DESIGN SYSTEM (CARDS, DIALOGUES, BADGES, MODALS, LIGHTBOX)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Retro RPG Dialogue Box (Pengenalan Sekolah & Visi Misi)
   -------------------------------------------------------------------------- */
.rpg-dialogue-card {
  background: var(--bg-secondary);
  border: 3px solid var(--accent-sky);
  box-shadow: 6px 6px 0px #020617, 0 0 25px rgba(37, 99, 235, 0.2);
  padding: 2.5rem;
  position: relative;
}

.rpg-dialogue-card::before {
  content: 'QUEST DIALOGUE // SMK KARYA GUNA 2 PROFIL';
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--accent-blue);
  color: #fff;
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--accent-sky);
}

.dialogue-inner-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.5rem;
  align-items: center;
}

.dialogue-avatar-col {
  text-align: center;
}

.dialogue-mascot-portrait {
  width: 140px;
  height: 160px;
  margin: 0 auto 0.75rem auto;
  border: 2px solid var(--accent-gold);
  background: #020617;
  padding: 0.5rem;
  box-shadow: 3px 3px 0px #000;
}

.dialogue-speaker-tag {
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  color: var(--accent-gold);
}

.dialogue-text-col h3 {
  font-family: var(--font-pixel-heading);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.dialogue-lead-quote {
  font-size: 1.05rem;
  color: #e2e8f0;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.dialogue-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.value-card-mini {
  background: #0f172a;
  border: 1px solid #334155;
  padding: 0.85rem;
  text-align: center;
}

.value-card-mini .icon {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.value-card-mini h5 {
  font-size: 0.85rem;
  color: var(--accent-sky);
  margin-bottom: 0.25rem;
}

.value-card-mini p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Jurusan / Keahlian Cards Grid
   -------------------------------------------------------------------------- */
.jurusan-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.pixel-jurusan-card {
  background: var(--bg-secondary);
  border: 2px solid #334155;
  box-shadow: 4px 4px 0px #020617;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.pixel-jurusan-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-sky);
  box-shadow: 6px 6px 0px #020617, 0 0 20px rgba(56, 189, 248, 0.25);
}

.pixel-jurusan-card.featured-card {
  border-color: var(--accent-sky);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.08) 0%, var(--bg-secondary) 100%);
}

.jurusan-card-header {
  padding: 0.85rem 1.25rem;
  background: #020617;
  border-bottom: 2px solid;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.jurusan-code-badge {
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  color: #fff;
  padding: 0.2rem 0.6rem;
  box-shadow: 1px 1px 0px #000;
}

.jurusan-alias-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.jurusan-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.jurusan-art-preview {
  height: 120px;
  background: #090d16;
  border: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  padding: 0.5rem;
}

.jurusan-mascot-img {
  height: 100%;
  max-width: 100px;
  object-fit: contain;
}

.jurusan-name {
  font-size: 1.2rem;
  font-family: var(--font-pixel-heading);
  margin-bottom: 0.65rem;
  color: #ffffff;
}

.jurusan-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}

.jurusan-skill-bars {
  background: #090d16;
  padding: 0.75rem;
  border: 1px solid #1e293b;
  margin-bottom: 1rem;
}

.skill-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  margin-bottom: 0.4rem;
  color: #e2e8f0;
}

.pixel-progress-bar {
  height: 8px;
  background: #1e293b;
  border: 1px solid #334155;
  position: relative;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  transition: width 1s ease;
}

.career-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.career-pill {
  background: #1e293b;
  color: var(--accent-sky);
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid #334155;
}

.jurusan-card-footer {
  padding: 1rem 1.5rem;
  background: #0f172a;
  border-top: 1px solid #1e293b;
}

/* --------------------------------------------------------------------------
   News & Bulletin Board Cards
   -------------------------------------------------------------------------- */
.news-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.pixel-news-card {
  background: var(--bg-secondary);
  border: 2px solid #334155;
  box-shadow: 4px 4px 0px #020617;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.pixel-news-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-emerald);
  box-shadow: 6px 6px 0px #020617, 0 0 20px rgba(16, 185, 129, 0.2);
}

.news-meta-strip {
  padding: 0.75rem 1.25rem;
  background: #020617;
  border-bottom: 1px solid #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}

.badge-news-cat {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald);
  border: 1px solid var(--accent-emerald);
  padding: 0.15rem 0.5rem;
  font-family: var(--font-pixel);
  font-size: 0.55rem;
}

.news-date {
  color: var(--text-muted);
}

.news-art-frame {
  height: 100px;
  background: linear-gradient(135deg, #064e3b, #0f172a);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid #1e293b;
}

.news-pixel-icon {
  font-size: 2.5rem;
}

.news-read-time {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  color: #e2e8f0;
}

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

.news-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  color: #fff;
}

.news-summary {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
  flex: 1;
}

.news-read-more {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  color: var(--accent-emerald);
}

/* --------------------------------------------------------------------------
   Achievements / Trophy Cards
   -------------------------------------------------------------------------- */
.achievements-filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.ach-filter-btn {
  background: #0f172a;
  border: 1px solid #334155;
  color: var(--text-muted);
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.ach-filter-btn:hover, .ach-filter-btn.active {
  background: var(--accent-blue);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  box-shadow: 2px 2px 0px #000;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.pixel-trophy-card {
  background: var(--bg-secondary);
  border: 2px solid #334155;
  box-shadow: 4px 4px 0px #020617;
  padding: 1.25rem;
  display: flex;
  gap: 1.25rem;
  align-items: center;
  transition: var(--transition-fast);
}

.pixel-trophy-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-3px);
  box-shadow: 6px 6px 0px #020617, 0 0 20px rgba(251, 191, 36, 0.25);
}

.trophy-icon-wrapper {
  width: 60px;
  height: 60px;
  background: #020617;
  border: 2px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  flex-shrink: 0;
  box-shadow: 2px 2px 0px #000;
}

.trophy-level-tag {
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  color: var(--accent-gold);
  margin-bottom: 0.25rem;
}

.trophy-title {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.trophy-winner {
  font-size: 0.8rem;
  color: #cbd5e1;
  margin-bottom: 0.2rem;
}

.trophy-cat {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Ekstrakurikuler Guild Cards
   -------------------------------------------------------------------------- */
.ekskul-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.pixel-ekskul-card {
  background: var(--bg-secondary);
  border: 2px solid #334155;
  box-shadow: 4px 4px 0px #020617;
  padding: 1.5rem;
  transition: var(--transition-fast);
}

.pixel-ekskul-card:hover {
  border-color: var(--accent-sky);
  transform: translateY(-4px);
  box-shadow: 6px 6px 0px #020617, 0 0 20px rgba(56, 189, 248, 0.25);
}

.ekskul-icon-box {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.badge-ekskul-cat {
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  color: var(--accent-cyan);
  display: inline-block;
  margin-bottom: 0.5rem;
}

.ekskul-name {
  font-family: var(--font-pixel-heading);
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 0.6rem;
}

.ekskul-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.ekskul-schedule, .ekskul-members {
  font-size: 0.75rem;
  color: #cbd5e1;
  margin-bottom: 0.25rem;
}

/* --------------------------------------------------------------------------
   Galeri "Adventure Memories"
   -------------------------------------------------------------------------- */
.gallery-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.pixel-photo-frame {
  background: var(--bg-secondary);
  border: 3px solid #334155;
  box-shadow: 4px 4px 0px #020617;
  padding: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pixel-photo-frame:hover {
  border-color: var(--accent-gold);
  transform: translateY(-4px);
  box-shadow: 6px 6px 0px #020617, 0 0 20px rgba(251, 191, 36, 0.3);
}

.photo-art-canvas {
  height: 160px;
  background: #090d16;
  border: 1px solid #1e293b;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.photo-placeholder-art .scene-icon {
  font-size: 3rem;
}

.photo-cat-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid var(--accent-sky);
  color: var(--accent-sky);
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  padding: 0.2rem 0.5rem;
}

.photo-caption-box {
  padding: 0.25rem 0.5rem;
}

.photo-title {
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 0.25rem;
}

.photo-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   CTA Save-Point Banner & Footer
   -------------------------------------------------------------------------- */
.cta-save-point-card {
  background: radial-gradient(circle at 50% 50%, #1e3a8a 0%, #0f172a 70%);
  border: 3px solid var(--accent-sky);
  box-shadow: 6px 6px 0px #020617, 0 0 35px rgba(56, 189, 248, 0.35);
  padding: 3.5rem 2rem;
  text-align: center;
  position: relative;
}

.save-point-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  background: #020617;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 0.3rem 0.8rem;
  margin-bottom: 1.25rem;
}

.cta-title {
  font-family: var(--font-pixel-heading);
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #fff;
}

.cta-desc {
  color: #cbd5e1;
  max-width: 600px;
  margin: 0 auto 2rem auto;
  font-size: 1.05rem;
}

.cta-buttons-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

/* Footer Section */
.footer-site {
  background: #020617;
  border-top: 2px solid #1e293b;
  padding: 4.5rem 0 2rem 0;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-brand-col h3 {
  font-family: var(--font-pixel-heading);
  font-size: 1.15rem;
  color: var(--accent-sky);
  margin-bottom: 0.75rem;
}

.footer-brand-col p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
}

.footer-col h4 {
  font-family: var(--font-pixel);
  font-size: 0.75rem;
  color: #fff;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links-list a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
  font-size: 0.85rem;
}

.footer-links-list a:hover {
  color: var(--accent-sky);
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-contact-list strong {
  color: #e2e8f0;
}

.footer-bottom-strip {
  border-top: 1px solid #1e293b;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   PIXEL MODAL DIALOG SYSTEM
   -------------------------------------------------------------------------- */
.pixel-modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
}

.pixel-modal-backdrop.active {
  display: flex;
}

.pixel-modal-window {
  background: var(--bg-secondary);
  border: 3px solid var(--accent-sky);
  box-shadow: 8px 8px 0px #020617, 0 0 35px rgba(56, 189, 248, 0.3);
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  position: relative;
  animation: modalPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPopIn {
  from { opacity: 0; transform: scale(0.92) translateY(15px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header-strip {
  background: #020617;
  border-bottom: 2px solid #1e293b;
  padding: 0.85rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-family: var(--font-pixel-heading);
  font-size: 0.95rem;
  color: var(--accent-sky);
}

.modal-close-btn {
  background: transparent;
  border: 1px solid #475569;
  color: #fff;
  font-family: var(--font-pixel);
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
}
.modal-close-btn:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
}

.modal-scroll-content {
  padding: 1.75rem;
  overflow-y: auto;
  flex: 1;
}

/* Modal Internal Layouts */
.jurusan-detail-dialog .detail-header-strip {
  border: 2px solid;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.jurusan-detail-dialog h3 {
  font-family: var(--font-pixel-heading);
  font-size: 1.25rem;
}

.detail-content-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
}

.mascot-col {
  text-align: center;
}

.mascot-col img {
  width: 140px;
  height: 160px;
  margin-bottom: 1rem;
}

.badge-lab-cert {
  background: #020617;
  border: 1px solid #334155;
  padding: 0.75rem;
  text-align: left;
  font-size: 0.75rem;
}

.badge-lab-cert ul {
  list-style: none;
  margin-top: 0.35rem;
}

.badge-lab-cert li {
  color: var(--accent-emerald);
  margin-bottom: 0.2rem;
}

.info-col h4 {
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  color: var(--accent-sky);
  margin-top: 1rem;
  margin-bottom: 0.35rem;
}

.info-col h4:first-child {
  margin-top: 0;
}

.info-col p {
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.6;
}

.prospects-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip-prospect {
  background: #1e293b;
  border: 1px solid #334155;
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
  color: #fff;
}

/* News Reader Modal */
.news-reader-dialog .news-badge-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #334155;
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.reader-title {
  font-family: var(--font-pixel-heading);
  font-size: 1.35rem;
  line-height: 1.4;
  margin-bottom: 1.25rem;
}

.reader-content p {
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

/* Lightbox Modal */
.lightbox-dialog {
  text-align: center;
}

.lightbox-photo-canvas {
  height: 300px;
  background: #090d16;
  border: 2px solid #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 1.25rem;
}

.lightbox-photo-canvas .large-icon {
  font-size: 5rem;
}

.lightbox-tag {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: var(--accent-blue);
  color: #fff;
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  padding: 0.3rem 0.6rem;
}

.lightbox-desc-box h3 {
  font-family: var(--font-pixel-heading);
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.lightbox-desc-box .date {
  font-size: 0.8rem;
  color: var(--accent-gold);
  display: block;
  margin-bottom: 0.75rem;
}

.lightbox-desc-box p {
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Responsive Queries */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dialogue-inner-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .detail-content-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .dialogue-values-grid {
    grid-template-columns: 1fr;
  }
  .cta-title {
    font-size: 1.4rem;
  }
}
