/* Phase 3: The ACEIIIT System Section (Premium Editorial Showcase) */

.premium-system-section {
  padding: 8rem 0;
  background-color: var(--surface);
  position: relative;
  z-index: 5;
  border-top: 1px solid rgba(20, 17, 15, 0.1);
}

.system-intro {
  margin-bottom: 4rem;
  max-width: 700px;
}

.technical-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.875rem;
  color: var(--red);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.system-heading {
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.system-desc {
  font-size: 1.125rem;
  opacity: 0.8;
  max-width: 600px;
}

/* Showcase Layout */
.system-showcase {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 4rem;
}

.showcase-nav {
  display: flex;
  gap: 2rem;
  border-bottom: 1px solid rgba(20, 17, 15, 0.1);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
}

.showcase-tab {
  background: none;
  border: none;
  font-family: 'Space Mono', monospace;
  font-size: 0.875rem;
  color: var(--ink);
  opacity: 0.5;
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
  transition: opacity 0.3s ease, color 0.3s ease;
  position: relative;
}

.showcase-tab:hover {
  opacity: 0.8;
}

.showcase-tab.active {
  opacity: 1;
  color: var(--red);
  font-weight: 700;
}

.showcase-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--red);
}

/* Product Evidence Frame */
.showcase-frame {
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 70vh;
  background: var(--paper);
  border: 1px solid rgba(20, 17, 15, 0.1);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px -10px rgba(20, 17, 15, 0.1);
  position: relative;
  overflow: hidden;
}

.showcase-state {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.showcase-state.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* UI Elements inside Showcase (Re-used & refined from mock portal) */
.mockup-ui, .prep-ui, .interview-ui, .exp-analysis-grid {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  border: 1px solid rgba(20, 17, 15, 0.05);
  overflow: hidden;
}

/* Practice UI */
.mockup-ui {
  display: flex;
  flex-direction: column;
}

.mockup-header {
  height: 48px;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

.mockup-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.mockup-timer {
  font-family: 'Space Mono', monospace;
  color: var(--red);
}

.mockup-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.mockup-main {
  flex: 1;
  padding: 2.5rem;
  border-right: 1px solid #eee;
  display: flex;
  flex-direction: column;
}

.mockup-q-title {
  font-family: 'Space Mono', monospace;
  font-size: 0.875rem;
  color: var(--gray);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.mockup-q-text {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.mockup-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: auto;
}

.mockup-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid #eee;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.mockup-option:hover {
  background: #f9f9f9;
}

.mockup-option.selected {
  border-color: var(--red);
  background: rgba(180, 35, 24, 0.02);
}

.mockup-option-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #ccc;
}

.mockup-option.selected .mockup-option-circle {
  border-color: var(--red);
  background: var(--red);
  box-shadow: inset 0 0 0 4px #fff;
}

.mockup-sidebar {
  width: 280px;
  padding: 1.5rem;
  background: #fafafa;
}

.mockup-palette {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.mockup-palette-item {
  aspect-ratio: 1;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.mockup-palette-item.answered {
  background: #14110f;
  border-color: #14110f;
}

.mockup-palette-item.marked {
  background: var(--gold);
  border-color: var(--gold);
}


/* Analyse UI */
.exp-analysis-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  background: transparent;
  box-shadow: none;
  border: none;
  gap: 2rem;
}

.exp-ana-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.exp-ana-card {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border: 1px solid rgba(20, 17, 15, 0.05);
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.exp-ana-ring {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 6px solid #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
}

.exp-ana-ring.red {
  border-color: var(--red);
  color: var(--red);
}

.exp-ana-ring.gold {
  border-color: var(--gold);
  color: var(--gold);
}

.ana-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.ana-desc {
  font-size: 0.875rem;
  color: var(--gray);
}

.exp-ana-right {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 2.5rem;
  border: 1px solid rgba(20, 17, 15, 0.05);
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
}

.chart-title {
  font-family: var(--font-display);
  margin-bottom: 2.5rem;
  font-size: 1.25rem;
}

.exp-chart-container {
  display: flex;
  gap: 2rem;
  flex: 1;
  align-items: flex-end;
  padding-bottom: 1rem;
}

.exp-chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  height: 100%;
}

.exp-bar-bg {
  flex: 1;
  width: 40px;
  background: #f5f5f5;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.exp-bar-fill {
  width: 100%;
  background: var(--ink);
  border-radius: 20px;
}

.exp-bar-fill.red-bg { background: var(--red); }
.exp-bar-fill.gold-bg { background: var(--gold); }

.exp-chart-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: var(--gray);
}


/* Prepare UI */
.prep-ui {
  padding: 3rem;
  display: flex;
  flex-direction: column;
}

.prep-header {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.prep-schedule {
  display: flex;
  flex-direction: column;
}

.prep-row {
  display: flex;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid #f5f5f5;
}

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

.prep-row.op-50 {
  opacity: 0.5;
}

.prep-date {
  font-family: 'Space Mono', monospace;
  color: var(--red);
  width: 100px;
  font-size: 0.875rem;
}

.prep-title {
  flex: 1;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.125rem;
}

.prep-badge {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  background: var(--paper);
  border-radius: 4px;
}

/* Interview UI */
.interview-ui {
  display: flex;
  gap: 2rem;
  padding: 3rem;
  background: transparent;
  border: none;
  box-shadow: none;
}

.mentor-mock-card {
  flex: 1;
  background: #fff;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(20, 17, 15, 0.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mentor-mock-img {
  width: 100%;
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  background-color: #eee;
  filter: grayscale(100%);
}

.mentor-mock-info {
  padding: 1.5rem;
  text-align: center;
}

.mentor-mock-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.mentor-mock-rank {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: var(--red);
}

/* Footer Actions */
.system-actions {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.system-link {
  font-family: 'Space Mono', monospace;
  font-size: 0.875rem;
  color: var(--ink);
  text-decoration: none;
  padding: 1rem 1.5rem;
  border: 1px solid rgba(20, 17, 15, 0.2);
  border-radius: 30px;
  transition: all 0.3s ease;
}

.system-link:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* Responsive */
@media (max-width: 1024px) {
  .showcase-frame {
    padding: 1.5rem;
  }
  .mockup-sidebar {
    display: none;
  }
  .exp-analysis-grid {
    grid-template-columns: 1fr;
  }
  .interview-ui {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .mockup-options-grid {
    grid-template-columns: 1fr;
  }
  
  .prep-ui {
    padding: 1rem;
  }

  .analysis-top {
    flex-direction: column;
    gap: 0.5rem;
  }

  .analysis-card {
    padding: 1rem;
    flex-direction: row;
    gap: 1rem;
    justify-content: flex-start;
  }
  
  .analysis-ring {
    width: 50px;
    height: 50px;
    border-width: 4px;
    font-size: 1rem;
    margin: 0;
  }
}
