/* Common styles for skills pages - extends learn/styles/common.css */
:root {
    --bg-primary: #0a0a0b;
    --bg-secondary: #111113;
    --bg-tertiary: #1a1a1d;
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --accent: #22c55e;
    --accent-dim: #16a34a;
    --border: #27272a;
    --warning: #f59e0b;
    --red: #ef4444;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Header */
header {
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    z-index: 100;
}
header .container { display: flex; justify-content: space-between; align-items: center; }

/* Offset for fixed header */
main { padding-top: 97px; }

/* Anchor offset for in-page links */
html { scroll-padding-top: 97px; }
.logo { font-weight: 700; font-size: 1.25rem; color: var(--text-primary); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo-icon { width: 48px; height: 48px; border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.logo-icon svg,
.logo-icon img { width: 100%; height: 100%; object-fit: contain; }

/* Navigation */
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--text-primary); }
.nav-links a.active { color: var(--text-primary); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 8px; font-weight: 600; font-size: 0.95rem; text-decoration: none; transition: all 0.2s; cursor: pointer; border: none; }
.btn-secondary { background: var(--bg-tertiary); color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); }
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: var(--accent-dim); }
.btn-primary:disabled { background: var(--border); color: var(--text-secondary); cursor: not-allowed; }
.lang-switch { font-weight: 600; font-size: 0.85rem; padding: 6px 12px; border-radius: 4px; background: var(--bg-tertiary); border: 1px solid var(--border); transition: all 0.2s; display: inline-flex; align-items: center; gap: 6px; }
.lang-switch:hover { background: var(--border); color: var(--text-primary); }

/* Hamburger Menu */
.hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 32px; height: 32px; border-radius: 4px; background: transparent; border: none; cursor: pointer; padding: 4px; z-index: 1001; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: all 0.3s ease; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.hamburger:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Nav overlay - hidden by default */
.nav-overlay { display: none; }

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links { position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: var(--bg-secondary); flex-direction: column; padding: 80px 32px 32px; gap: 24px; z-index: 1000; transition: right 0.3s ease; }
    .nav-links.active { right: 0; }
    .nav-links a { font-size: 1.1rem; }
    .nav-links .btn { width: 100%; justify-content: center; }
    .nav-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 99; }
    .nav-overlay.active { display: block; }
}

/* Footer */
footer { padding: 40px 0; border-top: 1px solid var(--border); }
footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
footer p { color: var(--text-secondary); font-size: 0.9rem; }
footer a { color: var(--text-secondary); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--text-primary); }
.footer-links { display: flex; gap: 24px; }
