/* ==========================================================
   RXPASSION DESIGN SYSTEM
   VERSION : 1.0
   COMPONENT LIBRARY
========================================================== */
/* =====================================================
   RXPASSION.ID
   COMPONENTS
   Reusable UI Components
===================================================== */

/* Card */

/* Button */

/* Modal */

/* Badge */

/* Timeline */
/* =====================================================
   BUTTON COMPONENTS
===================================================== */

.button{
    border-radius:12px;
    padding:12px 18px;
    font:inherit;
    font-size:13px;
    font-weight:700;
    cursor:pointer;
    transition:.22s ease;
}

.button:hover{
    transform:translateY(-2px);
}

.button-primary{
    border:1px solid rgba(34,211,238,.45);
    color:white;
    background:linear-gradient(135deg,#2563eb,#0284c7);
    box-shadow:0 12px 28px rgba(37,99,235,.28);
}

.button-secondary{
    border:1px solid var(--line);
    color:#dbeafe;
    background:rgba(15,23,42,.72);
}

/* =====================================================
   PROJECT PROGRESS COMPONENT
===================================================== */

.project-progress {
  width: 100%;
  margin-top: 16px;
}

.project-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-progress-head strong {
  color: var(--cyan2);
  font-size: 12px;
}

.project-progress-track {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.14);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.75);
}

.project-progress-fill {
  display: block;
  width: var(--progress);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #22d3ee);
  box-shadow:
    0 0 12px rgba(34, 211, 238, 0.5),
    0 0 24px rgba(37, 99, 235, 0.28);
  transition: width 0.6s ease;
}

.project-card:hover .project-progress-fill {
  filter: brightness(1.18);
}

.public-status-card {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(91, 211, 255, 0.25);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.public-status-title {
  margin-bottom: 12px;
  color: #74e7ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.public-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.public-status-item {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.public-status-item span {
  display: block;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
}

.public-status-item strong {
  color: #ffffff;
  font-size: 14px;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .public-status-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   FINAL POLISH — MODAL DETAIL PROYEK
   ========================================================= */

#projectModal {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 180ms ease,
    visibility 180ms ease;
}

#projectModal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

#projectModal .modal-card {
  padding-bottom: 36px;
  transform: scale(0.96);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

#projectModal[aria-hidden="false"] .modal-card {
  transform: scale(1);
}

#projectModal .modal-close {
  transition:
    color 180ms ease,
    transform 180ms ease,
    text-shadow 180ms ease;
}

#projectModal .modal-close:hover {
  color: #74e7ff;
  transform: rotate(90deg) scale(1.08);
  text-shadow: 0 0 12px rgba(116, 231, 255, 0.55);
}

#projectModal .detail-item {
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

#projectModal .detail-item:hover {
  transform: translateY(-2px);
  border-color: rgba(116, 231, 255, 0.35);
  background: rgba(255, 255, 255, 0.05);
}

#projectModal .public-status-card {
  border-color: rgba(116, 231, 255, 0.35);
}

#projectModal .public-status-title {
  margin-bottom: 14px;
  color: #74e7ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

#projectModal .public-status-grid {
  align-items: stretch;
  gap: 16px;
}

#projectModal .public-status-item {
  min-height: 74px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* =========================================================
   DOWNLOAD CENTER — FINAL POLISH RC1
   ========================================================= */

#download .download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

#download .download-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid rgba(116, 231, 255, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.07),
      rgba(255, 255, 255, 0.025)
    );
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

#download .download-card:hover {
  transform: translateY(-4px);
  border-color: rgba(116, 231, 255, 0.42);
  box-shadow: 0 18px 38px rgba(0, 86, 180, 0.18);
}

#download .download-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

#download .download-top h3 {
  margin: 0 0 8px;
}

#download .download-top p {
  margin: 0;
  line-height: 1.55;
}

#download .download-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 12px;
  border: 1px solid rgba(116, 231, 255, 0.24);
  border-radius: 999px;
  background: rgba(116, 231, 255, 0.08);
  color: #8cecff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#download .download-badge.development {
  border-color: rgba(255, 194, 86, 0.28);
  background: rgba(255, 194, 86, 0.09);
  color: #ffd27a;
}

#download .download-badge.internal {
  border-color: rgba(180, 188, 204, 0.24);
  background: rgba(180, 188, 204, 0.08);
  color: #c9d0dc;
}

#download .download-footer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#download .download-footer span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

#download .download-footer strong {
  color: #ffffff;
  font-size: 15px;
  line-height: 1.4;
}

/* Card keempat dibuat rapi di tengah baris kedua */

@media (max-width: 900px) {
  #download .download-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  
}

@media (max-width: 600px) {
  #download .download-grid {
    grid-template-columns: 1fr;
  }

  #download .download-card {
    min-height: auto;
  }
}

/* DOWNLOAD CENTER — FORCE 2 x 2 */
#download .download-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

#download .download-card:nth-child(4) {
  grid-column: auto !important;
}

@media (max-width: 600px) {
  #download .download-grid {
    grid-template-columns: 1fr !important;
  }
}

/* DOWNLOAD CENTER — FINAL SPACING FIX */

#download .download-card {
  min-height: 240px;
}

#download .download-footer {
  margin-top: auto;
  padding-top: 18px;
}

#download .content-inner {
  padding-bottom: 56px;
}