/* ===== ROLES STYLES - SKILLY ===== */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c28;
  --accent: #6c5ce7;
  --accent-light: #a29bfe;
  --accent-glow: rgba(108, 92, 231, 0.25);
  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b8;
  --text-muted: #6c6c80;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --gradient-1: linear-gradient(135deg, #6c5ce7, #a29bfe);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-sans); background: var(--bg-primary); color: var(--text-primary); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section.bg-alt { background: var(--bg-secondary); }

/* --- Top Nav --- */
.role-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.role-nav .container { display: flex; align-items: center; justify-content: space-between; }
.role-nav-logo {
  font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em;
  background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.role-nav-links { display: flex; align-items: center; gap: 28px; }
.role-nav-links a { color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.role-nav-links a:hover { color: var(--text-primary); }

/* --- Role Hero --- */
.role-hero { padding: 80px 0; position: relative; overflow: hidden; }
.role-hero::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.role-hero .container { position: relative; z-index: 1; }
.role-hero-badge {
  display: inline-block; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  color: #fff; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2px;
  padding: 6px 16px; border-radius: 999px; margin-bottom: 20px;
}
.role-hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; color: #fff; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 14px; }
.role-hero > .container > p { font-size: 1.1rem; color: rgba(255,255,255,0.8); max-width: 600px; margin-bottom: 32px; }
.role-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.role-stat { display: flex; flex-direction: column; }
.stat-val { font-size: 1.5rem; font-weight: 700; color: #fff; }
.stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 1px; }

/* Role gradient variants */
.rh-devops           { background: linear-gradient(135deg, #4c1d95 0%, #6c5ce7 50%, #0a0a1a 100%); }
.rh-azure-devops     { background: linear-gradient(135deg, #0c3c70 0%, #0078d4 100%); }
.rh-sre              { background: linear-gradient(135deg, #0f3d2e 0%, #84cc16 100%); }
.rh-cloud-engineer   { background: linear-gradient(135deg, #0c4a6e 0%, #0ea5e9 100%); }
.rh-cloud-architect  { background: linear-gradient(135deg, #3b0764 0%, #8b5cf6 100%); }
.rh-platform         { background: linear-gradient(135deg, #431407 0%, #f97316 100%); }
.rh-devsecops        { background: linear-gradient(135deg, #7f1d1d 0%, #ef4444 100%); }
.rh-automation       { background: linear-gradient(135deg, #0f172a 0%, #14b8a6 100%); }
.rh-build-release    { background: linear-gradient(135deg, #422006 0%, #eab308 100%); }
.rh-test-auto        { background: linear-gradient(135deg, #500724 0%, #ec4899 100%); }
.rh-support          { background: linear-gradient(135deg, #0f172a 0%, #475569 100%); }
.rh-data             { background: linear-gradient(135deg, #0c4a6e 0%, #06b6d4 100%); }
.rh-dotnet           { background: linear-gradient(135deg, #2e1065 0%, #7c3aed 100%); }
.rh-ai-engineer      { background: linear-gradient(135deg, #0f172a 0%, #2563eb 45%, #22d3ee 100%); }
.rh-mlops            { background: linear-gradient(135deg, #1f2937 0%, #0f766e 50%, #22c55e 100%); }
.rh-aiops            { background: linear-gradient(135deg, #111827 0%, #1d4ed8 40%, #f59e0b 100%); }
.rh-ai-automation    { background: linear-gradient(135deg, #172554 0%, #7c3aed 45%, #14b8a6 100%); }
.rh-iis-admin        { background: linear-gradient(135deg, #0c1a2e 0%, #1e40af 50%, #38bdf8 100%); }
.rh-app-support      { background: linear-gradient(135deg, #0f1e24 0%, #0e7490 50%, #34d399 100%); }
.rh-sysadmin         { background: linear-gradient(135deg, #0a1a0f 0%, #166534 50%, #4ade80 100%); }

/* --- Section header --- */
.section-label {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px; color: var(--accent-light); margin-bottom: 14px;
  background: rgba(108, 92, 231, 0.1); padding: 6px 16px; border-radius: 20px;
  border: 1px solid rgba(108, 92, 231, 0.2);
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; margin-bottom: 12px; letter-spacing: -0.02em; }
.section-desc { color: var(--text-secondary); max-width: 580px; font-size: 1rem; }

/* --- Overview Grid --- */
.role-overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.role-overview-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
}
.role-overview-card h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; color: var(--text-primary); }
.role-overview-card p { color: var(--text-secondary); line-height: 1.7; font-size: 0.95rem; margin-bottom: 14px; }
.role-overview-card ul { display: flex; flex-direction: column; gap: 8px; }
.role-overview-card li { color: var(--text-secondary); padding-left: 20px; position: relative; font-size: 0.9rem; }
.role-overview-card li::before { content: '->'; position: absolute; left: 0; color: var(--accent-light); font-size: 0.8rem; top: 2px; }

/* --- Learning Path Steps --- */
.path-steps { display: flex; flex-direction: column; gap: 0; margin-top: 40px; }
.path-step { display: flex; gap: 20px; align-items: flex-start; position: relative; }
.path-step:not(:last-child)::after {
  content: ''; position: absolute; left: 23px; top: 52px; bottom: -8px;
  width: 2px; background: linear-gradient(to bottom, var(--accent) 0%, transparent 100%);
}
.step-num {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%;
  background: var(--gradient-1); display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; font-weight: 700; color: #fff; margin-top: 4px;
  position: relative; z-index: 1; box-shadow: 0 0 0 4px rgba(108,92,231,0.15);
}
.step-body {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 22px; flex: 1; margin-bottom: 16px; transition: border-color 0.2s, background 0.2s;
}
.step-body:hover { border-color: rgba(108,92,231,0.5); background: var(--bg-card-hover); }
.step-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; flex-wrap: wrap; gap: 8px; }
.step-title { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); }
.step-tag {
  font-size: 0.72rem; font-weight: 600; color: var(--accent-light);
  background: rgba(108,92,231,0.1); border: 1px solid rgba(108,92,231,0.2);
  padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 1px;
}
.step-desc { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.6; margin-bottom: 16px; }
.step-links { display: flex; gap: 10px; flex-wrap: wrap; }
.step-link {
  display: inline-flex; align-items: center; gap: 5px; padding: 8px 16px;
  background: var(--gradient-1); color: #fff; border-radius: var(--radius-sm);
  font-size: 0.82rem; font-weight: 600; transition: opacity 0.2s, transform 0.2s;
}
.step-link:hover { opacity: 0.85; transform: translateY(-1px); }
.step-link-alt {
  background: transparent; border: 1px solid var(--border-hover);
  color: var(--text-secondary);
}
.step-link-alt:hover { border-color: var(--accent); color: var(--text-primary); opacity: 1; }

/* --- Skills --- */
.skills-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.skill-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 999px;
  font-size: 0.88rem; color: var(--text-secondary); font-weight: 500; transition: border-color 0.2s, color 0.2s;
}
.skill-badge:hover { border-color: var(--accent); color: var(--text-primary); }

/* --- Tools Grid --- */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; margin-top: 24px; }
.tool-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 18px 14px; text-align: center; transition: border-color 0.2s, transform 0.2s;
}
.tool-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.tool-icon { font-size: 1.6rem; margin-bottom: 8px; }
.tool-name { font-size: 0.82rem; font-weight: 600; color: var(--text-primary); }

/* --- Use Cases --- */
.use-cases-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 24px; }
.use-case-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px; }
.use-case-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }
.use-case-card p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; }

/* --- Interview --- */
.interview-cats { display: flex; flex-direction: column; gap: 28px; margin-top: 28px; }
.interview-cat h3 {
  font-size: 0.85rem; font-weight: 600; color: var(--accent-light);
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px;
}
.interview-list { display: flex; flex-direction: column; gap: 10px; }
.interview-item {
  background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm); padding: 14px 18px;
  font-size: 0.9rem; color: var(--text-secondary); line-height: 1.5;
}

/* --- Footer --- */
.role-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 24px 0 20px;
  margin-top: 0;
}

.role-footer .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.role-footer-promo {
  border-radius: 18px;
  border: 1px solid rgba(108, 92, 231, 0.35);
  background: linear-gradient(110deg, #20143a 0%, #2a1f4b 50%, #162b49 100%);
  padding: 14px;
  display: grid;
  gap: 12px;
}

.role-footer-lead {
  border-radius: 14px;
  border: 1px solid rgba(186, 172, 255, 0.26);
  background: linear-gradient(180deg, rgba(161, 138, 255, 0.2), rgba(108, 92, 231, 0.14));
  padding: 14px;
}

.role-footer-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d6d0ff;
  margin-bottom: 8px;
}

.role-footer-lead h3 {
  font-size: 1.2rem;
  line-height: 1.2;
  margin-bottom: 6px;
  color: #fff;
}

.role-footer-lead p {
  color: rgba(235, 235, 255, 0.9);
  font-size: 0.86rem;
  margin-bottom: 10px;
}

.role-footer-lead a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6c5ce7 0%, #8d7dff 100%);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease;
}

.role-footer-lead a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.role-footer-certs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.role-cert-card {
  background: #151824;
  border: 1px solid rgba(154, 167, 198, 0.24);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 6px;
  transition: transform .2s ease, border-color .2s ease;
}

.role-cert-card:hover {
  transform: translateY(-2px);
  border-color: rgba(162, 155, 254, 0.45);
}

.role-cert-card img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.role-cert-card span {
  font-size: 0.74rem;
  font-weight: 700;
  color: #eef1ff;
}

.role-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.role-footer-bottom a {
  color: var(--accent-light);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.role-footer-bottom a:hover {
  color: var(--text-primary);
}

.role-footer-bottom span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* --- Back to top --- */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px; width: 40px; height: 40px;
  background: var(--gradient-1); color: #fff; border: none; border-radius: 50%;
  cursor: pointer; font-size: 1rem; opacity: 0; pointer-events: none;
  transition: opacity 0.3s; z-index: 1000;
}

/* --- Roles Overview (roles/index.html) --- */
.roles-hero { padding: 80px 0 60px; background: var(--bg-secondary); border-bottom: 1px solid var(--border); }
.roles-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 12px; }
.roles-hero h1 span { background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.roles-hero p { color: var(--text-secondary); font-size: 1.05rem; max-width: 560px; }
.roles-overview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; margin-top: 16px; }
.role-ov-card {
  display: block; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px 22px;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.role-ov-card:hover { border-color: var(--accent); transform: translateY(-3px); background: var(--bg-card-hover); }
.role-ov-icon { font-size: 2rem; margin-bottom: 12px; }
.role-ov-card h3 { font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 7px; }
.role-ov-card p { font-size: 0.86rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 14px; }
.role-ov-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.role-ov-badge {
  font-size: 0.72rem; padding: 3px 10px; border-radius: 999px;
  background: rgba(108,92,231,0.1); border: 1px solid rgba(108,92,231,0.2);
  color: var(--accent-light); font-weight: 500;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .role-overview-grid { grid-template-columns: 1fr; }
  .path-step::after { display: none; }
  .tools-grid { grid-template-columns: repeat(3, 1fr); }
  .role-nav-links { gap: 16px; }
  .role-stats { gap: 20px; }

  .role-footer-certs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .role-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 480px) {
  .roles-overview-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }

  .role-footer-certs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
