/* styles.css — Shared styles for claudiomolt site */
:root {
  --navy: #060b18;
  --navy-light: #0c1225;
  --steel: #151d35;
  --amber: #f59e0b;
  --amber-light: #fbbf24;
  --electric: #3b82f6;
  --text: #e8eaf0;
  --text-secondary: #94a3b8;
  --muted: #64748b;
  --card-bg: rgba(15, 23, 42, 0.6);
  --card-border: rgba(148, 163, 184, 0.08);
  --card-border-hover: rgba(245, 158, 11, 0.25);
  --glass: rgba(15, 23, 42, 0.4);
  --glass-border: rgba(148, 163, 184, 0.06);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* Skip to content link (accessibility) */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--amber);
  color: var(--navy);
  padding: 8px 16px;
  text-decoration: none;
  font-weight: 600;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-to-content:focus { top: 0; }

/* Enhanced focus states */
a:focus, button:focus, input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}
a:focus:not(:focus-visible) { outline: none; }

body {
  background: var(--navy);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(245, 158, 11, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(59, 130, 246, 0.03) 0%, transparent 50%);
  background-attachment: fixed;
}

a {
  color: var(--electric);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--amber); }

code, .mono {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

/* ===== NAVBAR ===== */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  z-index: 50;
  background: rgba(6, 11, 24, 0.7);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--glass-border);
  transition: background var(--transition), box-shadow var(--transition);
}

nav.scrolled {
  background: rgba(6, 11, 24, 0.92);
  box-shadow: 0 1px 30px rgba(0, 0, 0, 0.3);
}

nav .nav-brand {
  display: none;
}

nav .nav-links {
  display: flex;
  align-items: center;
}

nav .nav-links a {
  color: var(--text-secondary);
  margin: 0 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 0.72rem;
  position: relative;
  padding: 0.3rem 0;
  transition: color var(--transition);
}

nav .nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--amber);
  transition: width var(--transition);
}

nav .nav-links a:hover {
  color: var(--text);
}

nav .nav-links a:hover::after {
  width: 100%;
}

nav .nav-links a.active {
  color: var(--amber);
}

nav .nav-links a.active::after {
  width: 100%;
  background: var(--amber);
}

/* ===== FOOTER ===== */
footer {
  margin-top: auto;
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--card-border);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.3px;
}
footer .bolt { color: var(--amber); }

/* ===== PAGE TITLES ===== */
.page-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  padding: 2rem 1.5rem 0.5rem;
  letter-spacing: -0.5px;
}
.page-title span { color: var(--amber); }

.section-title {
  text-align: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--muted);
  margin: 1.5rem 0;
  font-weight: 500;
}

/* ===== AVATAR ===== */
.avatar {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  border: 2px solid rgba(245, 158, 11, 0.2);
  margin-bottom: 1.5rem;
  box-shadow:
    0 0 40px rgba(245, 158, 11, 0.1),
    0 0 80px rgba(59, 130, 246, 0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}
.avatar:hover {
  transform: scale(1.05) rotate(1deg);
  box-shadow:
    0 0 60px rgba(245, 158, 11, 0.2),
    0 0 100px rgba(59, 130, 246, 0.1);
}

/* ===== SECTION BLOCKS ===== */
.section {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.8rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.section::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber), var(--electric), transparent);
  opacity: 0.5;
}
.section h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}
.section h2 .icon { color: var(--amber); }
.section p, .section li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}
.section p strong { color: var(--text); }
.section ul { list-style: none; margin-top: 0.5rem; }
.section ul li::before {
  content: '> ';
  color: var(--amber);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
}

/* ===== CARDS ===== */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber), var(--electric), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.card:hover {
  border-color: var(--card-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(245, 158, 11, 0.05);
}
.card:hover::before { opacity: 0.6; }
.card h2 { font-size: 1.2rem; margin-bottom: 0.5rem; font-weight: 600; }
.card h2 a { color: var(--text); }
.card h2 a:hover { color: var(--amber); }
.card .desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* ===== TAGS ===== */
.tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tag {
  background: rgba(59, 130, 246, 0.1);
  color: var(--electric);
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-xs);
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  border: 1px solid rgba(59, 130, 246, 0.15);
  letter-spacing: 0.3px;
}

/* ===== LINKS ===== */
.links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}
.links a {
  background: rgba(59, 130, 246, 0.08);
  color: var(--electric);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-xs);
  font-size: 0.8rem;
  font-family: 'JetBrains Mono', monospace;
  border: 1px solid rgba(59, 130, 246, 0.15);
  transition: all var(--transition);
}
.links a:hover {
  background: rgba(245, 158, 11, 0.1);
  color: var(--amber);
  border-color: rgba(245, 158, 11, 0.25);
}
