/* =============================================================================
   FFMPEG STUDIO - SETUP GUIDE STYLES
   ============================================================================= */

@import url('../styles.css'); /* Import Parent Studio Variables & Base */

/* Guide Specific Layout */
.guide-content { display: none; }
.guide-content.active { display: block; }

/* ========================================= */
/* === SIDEBAR UPDATES === */
/* ========================================= */

.sidebar-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
}

.terminal-code-mini {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--accent);
}

.copy-btn-mini {
  background: transparent;
  border: none;
  color: var(--fg-muted);
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  transition: color 0.2s;
}

.copy-btn-mini:hover { color: var(--accent); }

/* ========================================= */
/* === OS SELECTION CARDS (REDESIGNED) === */
/* ========================================= */

.os-tabs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.os-tab-card {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--fg-muted);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  z-index: 1;
}

.os-tab-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--os-color, var(--accent)) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.os-tab-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.5);
}

.os-tab-card:hover::before { opacity: 0.08; }

.os-tab-card.active {
  border-color: var(--os-color, var(--accent));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
}

.os-tab-card.active::before { opacity: 0.15; }

.os-tab-card::after {
  content: '';
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 8px;
  height: 8px;
  background: var(--fg-muted);
  border-radius: 50%;
  transition: all 0.3s ease;
  opacity: 0.3;
}

.os-tab-card.active::after {
  background: var(--os-color, var(--accent));
  opacity: 1;
  box-shadow: 0 0 10px var(--os-color, var(--accent));
  animation: pulse-dot 2s infinite;
}

.os-tab-card svg {
  width: 32px;
  height: 32px;
  opacity: 0.6;
  transition: all 0.3s ease;
}

.os-tab-card:hover svg {
  opacity: 1;
  transform: scale(1.15);
  color: var(--os-color, var(--accent));
}

.os-tab-card.active svg {
  opacity: 1;
  color: var(--os-color, var(--accent));
  filter: drop-shadow(0 0 8px var(--os-color, var(--accent)));
}

.os-tab-card span {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.3s;
}

.os-tab-card.active span { color: var(--fg); }

/* OS Specific Colors */
.os-tab-card[data-os="windows"] { --os-color: #0078D4; }
.os-tab-card[data-os="macos"] { --os-color: #A2AAAD; }
.os-tab-card[data-os="linux"] { --os-color: #FCC624; }

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(0, 212, 170, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(0, 212, 170, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 212, 170, 0); }
}

/* ========================================= */
/* === REQUIREMENTS GRID === */
/* ========================================= */

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

.req-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
  overflow: hidden;
}

.req-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--fg-muted), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.req-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.req-card:hover::before { opacity: 1; }

.req-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.req-info { display: flex; flex-direction: column; gap: 0.25rem; }
.req-label { font-size: 0.7rem; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.req-value { font-size: 0.95rem; font-weight: 600; color: var(--fg); }

/* ========================================= */
/* === SPLIT LAYOUT & STEPS === */
/* ========================================= */

.split-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
}

@media (max-width: 1024px) {
  .split-layout { grid-template-columns: 1fr; }
}

.video-column { position: relative; }
.video-caption {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--fg-muted);
  text-align: center;
}

.studio-window {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
  position: sticky;
  top: 100px;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.studio-window:hover { transform: scale(1.01); }

/* === WINDOW HEADERS (OS SPECIFIC) === */

/* Common Header Styles */
.window-header {
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
  min-height: 40px;
}

.window-header .title {
  font-size: 0.75rem;
  color: var(--fg-muted);
  font-family: 'JetBrains Mono', monospace;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========================================= */
/* === WINDOWS HEADER === */
/* ========================================= */

.window-header.win-header {
  background: #000;
  justify-content: space-between;
  padding: 0;
  height: 32px;
  min-height: unset;
}

.win-header .title {
  text-align: left;
  margin-left: 12px;
  color: #fff;
}

.win-controls {
  display: flex;
  height: 100%;
  margin-left: auto;
}

.win-btn {
  width: 46px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background 0.15s;
  cursor: pointer;
}

.win-btn::after,
.win-btn::before {
  content: '';
  position: absolute;
  background: #fff;
  pointer-events: none;
}

.win-btn.min::after {
  width: 10px;
  height: 1px;
  bottom: 10px;
}

.win-btn.max::after {
  width: 10px;
  height: 10px;
  border: 1px solid #fff;
  background: transparent;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.win-btn.close::after,
.win-btn.close::before {
  width: 12px;
  height: 1px;
  top: 50%;
  left: 50%;
}

.win-btn.close::after {
  transform: translate(-50%, -50%) rotate(45deg);
}

.win-btn.close::before {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.win-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.win-btn.close:hover {
  background: #E81123;
}

.win-btn.close:hover::after,
.win-btn.close:hover::before {
  background: #fff;
}

/* ========================================= */
/* === MACOS HEADER === */
/* ========================================= */

.window-header.mac-header {
  justify-content: flex-start;
}

.mac-controls {
  display: flex;
  gap: 8px;
  margin-right: 1rem;
}

.mac-header .dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27C93F; }

.mac-header .title {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  pointer-events: none;
}

/* ========================================= */
/* === LINUX HEADER === */
/* ========================================= */

.window-header.linux-header {
  background: #2C001E;
  justify-content: center;
  position: relative;
}

.linux-controls {
  position: absolute;
  right: 0.75rem;
  display: flex;
  gap: 8px;
  align-items: center;
}

.lin-btn.close {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  cursor: pointer;
}

.lin-btn.close::after {
  content: '×';
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  line-height: 1;
  opacity: 0.8;
}

.lin-btn.close:hover {
  background: #E95420;
}

.lin-btn.close:hover::after {
  opacity: 1;
  color: #fff;
}

/* === WINDOW BODY === */
.window-body {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  background: #000;
}

.window-body iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* === TIMELINE STEPS === */

/* Wrapper for the right side content (Header + Steps) */
.steps-wrapper {
  display: flex;
  flex-direction: column;
}

.steps-column { 
  position: relative;
  padding-left: 1rem; 
}

/* The Vertical Timeline Line */
.steps-column::before {
  content: '';
  position: absolute;
  left: 32px; /* Circle Center: 16px padding + 16px radius */
  top: 16px;  /* Starts at the center of the first circle */
  height: calc(100% - 32px); /* Ends at the center of the last circle */
  width: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--border) 80%, transparent 100%);
  opacity: 0.3;
  z-index: 0;
}

.step-block {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

.step-block:last-child { margin-bottom: 0; }

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 0 0 0 rgba(0, 212, 170, 0);
}

.step-block:hover .step-number, .step-block.active .step-number {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 0 8px rgba(0, 212, 170, 0.2);
  border-color: transparent;
}

.step-content {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  padding: 1rem;
  border-radius: 12px;
  transition: background 0.3s, border-color 0.3s;
}

.step-block:hover .step-content {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
}

.step-content h4 { 
  font-size: 1.1rem; 
  margin-bottom: 0.75rem; 
  font-weight: 700;
  color: var(--fg);
}

.step-content p { 
  font-size: 0.9rem; 
  color: var(--fg-muted); 
  line-height: 1.6; 
  margin-bottom: 0.75rem; 
}

.step-content ol, .step-content ul { padding-left: 1rem; }

/* ========================================= */
/* === TERMINAL CODE BLOCK === */
/* ========================================= */

.terminal-code {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--accent);
  margin-top: 0.5rem;
  width: 100%;
  max-width: 100%;
  overflow: hidden; 
}

.terminal-code span { 
  flex: 1; 
  min-width: 0; 
  overflow-x: auto; 
  white-space: nowrap; 
  padding-right: 0.5rem; 
  scrollbar-width: none; 
}
.terminal-code span::-webkit-scrollbar { display: none; }

.copy-btn {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  color: var(--fg-muted);
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.copy-btn:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }

/* Linux Distro Tabs */
.distro-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}
.distro-tab {
  background: transparent;
  border: none;
  color: var(--fg-muted);
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}
.distro-tab:hover { color: var(--fg); }
.distro-tab.active { color: var(--accent); }
.distro-tab.active::after {
  content: '';
  position: absolute;
  bottom: -0.55rem;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
}
.distro-content { display: block; }
.distro-content.hidden { display: none; }

/* Utility */
code {
  background: var(--bg-secondary);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8em;
  color: var(--accent-warm);
}

/* ========================================= */
/* === ANIMATED GUIDE BUTTONS === */
/* ========================================= */

.guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.guide-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  overflow: hidden; 
  transition: all 0.3s ease;
  z-index: 1;
}

.guide-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.guide-btn-primary {
  background: var(--accent);
  color: var(--bg);
  border: 1px solid var(--accent);
  box-shadow: 0 4px 15px rgba(0, 212, 170, 0.2);
}
.guide-btn-primary:hover {
  box-shadow: 0 6px 20px rgba(0, 212, 170, 0.4);
  transform: translateY(-2px);
}

.guide-btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border);
}
.guide-btn-outline:hover {
  border-color: var(--accent);
  background: rgba(0, 212, 170, 0.05);
}

.guide-btn:hover svg { transform: translateY(-2px); }

.guide-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
  z-index: 2;
}
.guide-btn:hover::before { left: 100%; }

/* ========================================= */
/* === PARTICLE CANVAS FIX === */
/* ========================================= */

.hub-workspace {
  position: relative; /* Anchor for the canvas */
}

.particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* Matches the height of .hub-workspace */
  pointer-events: none; /* Click through */
  z-index: 0; /* Behind content */
}

/* ========================================= */
/* === HERO STYLE ADDITIONS === */
/* ========================================= */

/* Gradient Underline Effect */
.accent-line { 
    position: relative; 
    display: inline-block; 
}

.accent-line::after {
    content: ''; 
    position: absolute; 
    left: 0; 
    bottom: -4px;
    width: 100%; 
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-warm));
    border-radius: 2px;
}

/* Typing Cursor Animation */
.typing-cursor {
    display: inline-block; 
    width: 3px; 
    height: 1.2em;
    background: var(--accent); 
    margin-left: 4px;
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}

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