/* Stu-MM Corporate - Downloads Page Stylesheet */

/* Hero & Download Banner */
.download-hero {
  padding: 4.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero-bg);
}

.download-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 992px) {
  .download-hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.download-badge-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.badge-version {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: var(--color-brand-teal-glow);
  color: var(--color-brand-teal-light);
  border: 1px solid var(--border-brand);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
}

.badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-brand-lime);
  box-shadow: 0 0 8px var(--color-brand-lime);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(132, 204, 22, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(132, 204, 22, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(132, 204, 22, 0); }
}

.download-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--text-main);
  font-weight: 800;
}

.download-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 620px;
}

/* Download CTA Card */
.download-card-primary {
  background: var(--bg-card);
  backdrop-filter: var(--backdrop-acrylic);
  -webkit-backdrop-filter: var(--backdrop-acrylic);
  border: var(--border-acrylic);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-acrylic);
  position: relative;
}

.download-button-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 576px) {
  .download-button-wrapper {
    flex-direction: row;
    align-items: center;
  }
}

.btn-download-apk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.1rem 2rem;
  background: var(--gradient-sanctuary);
  color: #062622;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: var(--shadow-glow);
  transition: all var(--transition-normal);
  flex: 1;
}

.btn-download-apk:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(20, 184, 166, 0.4);
}

.btn-download-apk svg {
  flex-shrink: 0;
}

.apk-meta-tag {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.apk-meta-tag span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Security Verification Hash Card */
.hash-verification-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: var(--font-family-mono);
  font-size: 0.8rem;
}

.hash-label {
  font-weight: 700;
  color: var(--color-brand-teal-light);
  white-space: nowrap;
}

.hash-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-muted);
  user-select: all;
}

.btn-copy-hash {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  transition: all var(--transition-fast);
}

.btn-copy-hash:hover {
  color: var(--color-brand-teal-light);
  background: var(--color-brand-teal-glow);
}

/* QR Code Card */
.qr-card-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.qr-code-svg-box {
  background: #ffffff;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 0.85rem;
  display: inline-flex;
}

/* Screenshots Showcase Section */
.screenshots-section {
  padding: 5rem 0;
  background: var(--bg-body);
  position: relative;
}

.section-header-centered {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.screenshot-filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.tab-btn {
  padding: 0.6rem 1.35rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn:hover,
.tab-btn.active {
  background: var(--color-brand-teal);
  color: #ffffff;
  border-color: var(--color-brand-teal);
  box-shadow: 0 4px 15px rgba(15, 118, 110, 0.25);
}

/* Screenshot Display Grid */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: start;
}

.screenshot-card {
  background: var(--bg-card);
  backdrop-filter: var(--backdrop-acrylic);
  -webkit-backdrop-filter: var(--backdrop-acrylic);
  border: var(--border-acrylic);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-acrylic);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.screenshot-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
}

/* Phone Bezel Simulator */
.phone-mockup-wrapper {
  background: #020617;
  border-radius: 36px;
  padding: 10px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4), inset 0 0 0 2px #334155;
  position: relative;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.phone-speaker-notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 5px;
  background: #1e293b;
  border-radius: 4px;
  z-index: 10;
}

.phone-screen-img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 28px;
  display: block;
  background: #0B132B;
}

.screenshot-info {
  padding: 0.5rem 0.5rem 0.75rem;
}

.screenshot-badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-brand-teal-light);
  margin-bottom: 0.35rem;
}

.screenshot-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.screenshot-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Step-by-Step Installation Guide */
.install-guide-section {
  padding: 5rem 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

.step-number {
  position: absolute;
  top: -16px;
  left: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-sanctuary);
  color: #062622;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.step-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-brand-teal-glow);
  color: var(--color-brand-teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  margin-top: 0.5rem;
}

.step-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.step-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.step-callout {
  margin-top: 1rem;
  padding: 0.75rem;
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--color-brand-teal-light);
  border-left: 3px solid var(--color-brand-teal);
}

/* Technical Specification Table */
.specs-section {
  padding: 4.5rem 0;
}

.specs-card {
  background: var(--bg-card);
  backdrop-filter: var(--backdrop-acrylic);
  -webkit-backdrop-filter: var(--backdrop-acrylic);
  border: var(--border-acrylic);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-acrylic);
  max-width: 860px;
  margin: 0 auto;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}

.specs-table th,
.specs-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.specs-table th {
  color: var(--text-muted);
  font-weight: 600;
  width: 35%;
}

.specs-table td {
  color: var(--text-main);
  font-weight: 500;
}

.specs-table tr:last-child th,
.specs-table tr:last-child td {
  border-bottom: none;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  max-width: 440px;
  max-height: 90vh;
  position: relative;
  animation: zoomIn 0.25s ease-out;
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.lightbox-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  display: block;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.4);
}
