/* ============================================
   SV COM Nijmegen — Portfolio Page Styles
   Olive/army green theme + abstract platform viz
   ============================================ */

/* --- Theme Override --- */
:root {
  --accent: #6B7F3B;
  --accent-rgb: 107, 127, 59;
  --accent-light: #8FA84E;
  --accent-dim: #4A5A28;
  --glow-accent: 0 0 15px rgba(107, 127, 59, 0.4);
  --glow-accent-strong: 0 0 30px rgba(107, 127, 59, 0.6), 0 0 60px rgba(107, 127, 59, 0.2);
  --bg-card: #141418;
  --card-border: rgba(107, 127, 59, 0.12);
}

.site-header .logo { color: var(--accent-light); text-shadow: var(--glow-accent); }
.site-header .logo:hover { color: var(--accent-light); text-shadow: var(--glow-accent-strong); }
.site-header { border-bottom-color: rgba(107, 127, 59, 0.08); }
.site-footer { border-top-color: rgba(107, 127, 59, 0.08); }
.footer-links a:hover { color: var(--accent-light); }
a { color: var(--accent-light); }
a:hover { color: #fff; text-shadow: var(--glow-accent); }
.nav-links a:hover { color: var(--accent-light); }
.lang-btn:hover, .lang-btn.active { color: var(--accent-light); }

/* --- Hero --- */
.com-hero {
  padding: 180px 0 60px;
  text-align: center;
}

.com-hero h1 {
  font-size: clamp(2rem, 6vw, 3.6rem);
  font-weight: 900;
  color: var(--accent-light);
  text-shadow: var(--glow-accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.com-hero .tagline {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 12px;
}

.com-hero .subtitle {
  font-size: 0.95rem;
  color: var(--text-sub);
  max-width: 560px;
  margin: 0 auto 40px;
}

/* --- Visit Badge --- */
.com-badge { display: flex; justify-content: center; }

.visit-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 28px;
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.visit-badge:hover {
  border-color: var(--accent-light);
  box-shadow: var(--glow-accent);
  transform: translateY(-2px);
  color: var(--text);
  text-shadow: none;
}

.visit-badge svg { width: 24px; height: 24px; color: var(--text); flex-shrink: 0; }
.visit-badge small { display: block; font-size: 0.65rem; color: var(--text-sub); }
.visit-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* =============================================
   Platform Visualization — Abstract UI Fragments
   ============================================= */
.com-showcase {
  padding: 40px 0 80px;
  overflow: hidden;
}

.platform-stage {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  min-height: 520px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* --- Shared Fragment Styles --- */
.ui-fragment {
  background: rgba(20, 20, 24, 0.85);
  border: 1px solid rgba(107, 127, 59, 0.15);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.ui-fragment:hover {
  border-color: rgba(107, 127, 59, 0.4);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(107, 127, 59, 0.08);
  transform: translateY(-4px);
}

.frag-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(107, 127, 59, 0.1);
}

.frag-dots {
  display: flex;
  gap: 5px;
}

.frag-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.frag-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-light);
}

.frag-badge {
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2ecc71;
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.2);
  padding: 2px 8px;
  border-radius: 10px;
  animation: pulseBadge 2s ease-in-out infinite;
}

@keyframes pulseBadge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.frag-body {
  padding: 16px;
}

/* =============================================
   Fragment: Dashboard
   ============================================= */
.ui-frag--dashboard {
  grid-column: 1 / -1;
}

.frag-stat-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.frag-stat {
  flex: 1;
  background: rgba(107, 127, 59, 0.06);
  border: 1px solid rgba(107, 127, 59, 0.1);
  border-radius: 8px;
  padding: 14px 16px;
  text-align: center;
}

.frag-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--accent-light);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 4px;
}

.frag-stat-label {
  font-size: 0.7rem;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Bar chart */
.frag-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 80px;
  padding-top: 8px;
}

.frag-bar {
  flex: 1;
  background: linear-gradient(to top, var(--accent-dim), var(--accent-light));
  border-radius: 4px 4px 0 0;
  min-height: 8px;
  position: relative;
  animation: barGrow 1.2s ease-out forwards;
  transform-origin: bottom;
  opacity: 0;
}

.frag-bar:nth-child(1) { animation-delay: 0.6s; }
.frag-bar:nth-child(2) { animation-delay: 0.7s; }
.frag-bar:nth-child(3) { animation-delay: 0.8s; }
.frag-bar:nth-child(4) { animation-delay: 0.9s; }
.frag-bar:nth-child(5) { animation-delay: 1.0s; }
.frag-bar:nth-child(6) { animation-delay: 1.1s; }

@keyframes barGrow {
  from { transform: scaleY(0); opacity: 0; }
  to { transform: scaleY(1); opacity: 1; }
}

/* =============================================
   Fragment: Leaderboard
   ============================================= */
.frag-rank-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.frag-rank-row:last-child {
  border-bottom: none;
}

.frag-rank-row--dim {
  opacity: 0.4;
}

.frag-rank {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-light);
  width: 24px;
  text-align: center;
}

.frag-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(107, 127, 59, 0.3), rgba(107, 127, 59, 0.1));
  border: 1px solid rgba(107, 127, 59, 0.2);
  flex-shrink: 0;
}

.frag-rank-info {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.frag-rank-name {
  display: block;
  width: 80px;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}

.frag-rank-score {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-sub);
}

/* =============================================
   Fragment: Schedule
   ============================================= */
.frag-cal-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.75rem;
}

.frag-cal-row:last-child { border-bottom: none; }

.frag-cal-row--active {
  background: rgba(107, 127, 59, 0.06);
  border-radius: 6px;
  margin: 0 -8px;
  padding: 10px 8px;
  border-bottom-color: transparent;
}

.frag-cal-day {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-sub);
  width: 22px;
}

.frag-cal-date {
  font-weight: 500;
  color: var(--text);
  width: 50px;
}

.frag-cal-loc {
  flex: 1;
  color: var(--text-sub);
  font-size: 0.7rem;
}

.frag-cal-badge {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 10px;
}

.frag-cal-badge--full {
  background: rgba(192, 57, 43, 0.12);
  color: #e74c3c;
  border: 1px solid rgba(192, 57, 43, 0.2);
}

.frag-cal-badge--open {
  background: rgba(107, 127, 59, 0.12);
  color: var(--accent-light);
  border: 1px solid rgba(107, 127, 59, 0.25);
}

/* =============================================
   Fragment: Notification Toast
   ============================================= */
.ui-frag--notification {
  background: rgba(20, 20, 24, 0.9);
  border-color: rgba(46, 204, 113, 0.2);
}

.ui-frag--notification:hover {
  border-color: rgba(46, 204, 113, 0.4);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(46, 204, 113, 0.06);
}

.frag-notif {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

.frag-notif-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.frag-notif-title {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}

.frag-notif-sub {
  display: block;
  font-size: 0.7rem;
  color: var(--text-sub);
}

/* =============================================
   Fragment: Upload Card
   ============================================= */
.frag-upload {
  padding: 16px;
  text-align: center;
}

.frag-upload-icon {
  margin-bottom: 8px;
}

.frag-upload-icon svg {
  width: 28px;
  height: 28px;
  color: var(--accent-light);
  opacity: 0.7;
}

.frag-upload-text {
  display: block;
  font-size: 0.75rem;
  color: var(--text-sub);
  margin-bottom: 12px;
}

.frag-upload-progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.frag-upload-bar {
  width: 72%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent-light));
  border-radius: 2px;
  animation: uploadPulse 2.5s ease-in-out infinite;
}

@keyframes uploadPulse {
  0% { width: 0%; opacity: 0.5; }
  60% { width: 72%; opacity: 1; }
  100% { width: 72%; opacity: 0.7; }
}

/* =============================================
   Ambient Glow
   ============================================= */
.platform-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.platform-glow--1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(107, 127, 59, 0.08) 0%, transparent 70%);
  top: -50px;
  left: -100px;
}

.platform-glow--2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(107, 127, 59, 0.06) 0%, transparent 70%);
  bottom: -80px;
  right: -80px;
}

/* =============================================
   About Section
   ============================================= */
.com-about {
  padding: 80px 0 40px;
}

.about-text {
  max-width: 700px;
  margin: 24px auto 0;
  text-align: center;
}

.about-text p {
  color: var(--text-sub);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

/* =============================================
   Features Section
   ============================================= */
.com-features {
  padding: 60px 0 80px;
}

.com-features .section-title {
  margin-bottom: 40px;
}

.com-features .features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.com-features .feature-card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  padding: 28px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.com-features .feature-card:hover {
  border-color: var(--accent-light);
  box-shadow: var(--glow-accent);
  transform: translateY(-3px);
}

.com-features .feature-icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
  display: block;
}

.com-features .feature-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--text);
}

.com-features .feature-card p {
  color: var(--text-sub);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* =============================================
   CTA Section
   ============================================= */
.com-cta {
  padding: 80px 0;
  text-align: center;
}

.com-cta h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--accent-light);
  text-shadow: var(--glow-accent);
  margin-bottom: 12px;
}

.com-cta p {
  color: var(--text-sub);
  font-size: 0.95rem;
  margin-bottom: 36px;
}

/* =============================================
   Responsive
   ============================================= */
@media (min-width: 768px) {
  .com-features .features-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .com-hero {
    padding: 140px 0 50px;
  }

  .platform-stage {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 16px;
  }

  .ui-frag--dashboard {
    grid-column: 1;
  }

  .frag-stat-row {
    gap: 10px;
  }

  .frag-stat-num {
    font-size: 1.2rem;
  }

  .frag-stat {
    padding: 10px 12px;
  }
}
