/* ═══════════════════════════════════════════════
   Sharp at Work — style.css
   ═══════════════════════════════════════════════ */

:root {
  --navy: #0B0F1A;
  --navy2: #141824;
  --purple: #6D28D9;
  --purple-light: #8B5CF6;
  --blue: #2563EB;
  --blue-light: #3B82F6;
  --accent: linear-gradient(135deg, #6D28D9, #2563EB);
  --bg: #F7F6FF;
  --bg2: #EEEDFB;
  --text: #0B0F1A;
  --muted: #6B7280;
  --border: #E5E3F7;
  --white: #FFFFFF;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --mono: 'DM Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--bg); font-family: var(--sans); color: var(--text); }
a { color: inherit; }
img { max-width: 100%; display: block; }

/* ─── HEADER ─── */
.site-header {
  background: var(--navy);
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 0;
  text-decoration: none;
}

.logo-sharp {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 22px;
  color: #fff;
  letter-spacing: -0.5px;
}

.logo-slash {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  background: linear-gradient(135deg, #8B5CF6, #3B82F6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 2px;
}

.logo-work {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  color: rgba(255,255,255,0.55);
  letter-spacing: -0.5px;
}

nav { display: flex; align-items: center; gap: 32px; }

nav a {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}

nav a:hover { color: #fff; }

.nav-cta {
  background: linear-gradient(135deg, #6D28D9, #2563EB);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 600 !important;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

/* ─── HERO ─── */
.hero {
  background: var(--navy);
  padding: 100px 48px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(ellipse, rgba(109,40,217,0.15), transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: 10%;
  width: 400px; height: 400px;
  background: radial-gradient(ellipse, rgba(37,99,235,0.1), transparent 70%);
  pointer-events: none;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(109,40,217,0.15);
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: 100px;
  padding: 5px 16px;
  font-family: var(--mono);
  font-size: 11px;
  color: #8B5CF6;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-tag-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #8B5CF6;
  animation: pulse 2s ease infinite;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 900;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -2px;
  max-width: 700px;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: italic;
  background: linear-gradient(135deg, #8B5CF6, #60A5FA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.55);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 40px;
  font-weight: 300;
}

.hero-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, #6D28D9, #2563EB);
  color: #fff;
  padding: 14px 32px;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: opacity 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-ghost {
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  text-decoration: none;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.btn-ghost:hover { color: #fff; }

/* ─── CATEGORIES BAR ─── */
.categories-bar {
  background: var(--navy2);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0 48px;
  display: flex;
  gap: 0;
  overflow-x: auto;
}

.categories-bar::-webkit-scrollbar { height: 0; }

.cat-pill {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  padding: 16px 20px;
  white-space: nowrap;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.cat-pill:hover, .cat-pill.active {
  color: #8B5CF6;
  border-bottom-color: #6D28D9;
}

/* ─── MAIN CONTENT ─── */
.main { max-width: 1200px; margin: 0 auto; padding: 64px 48px; }

.section-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  max-width: 60px;
}

/* ─── FEATURED ARTICLE ─── */
.featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 72px;
  align-items: center;
}

.featured-image {
  background: linear-gradient(135deg, #1E1040, #0B1930);
  border-radius: 16px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.featured-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(109,40,217,0.3), transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(37,99,235,0.2), transparent 60%);
}

.featured-image-label {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 900;
  color: rgba(255,255,255,0.08);
  letter-spacing: -2px;
  position: relative;
  z-index: 1;
}

.featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.article-category {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--purple-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.featured-content h2 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  color: var(--text);
}

.featured-content h2 a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

.featured-content h2 a:hover { color: var(--purple); }

.article-excerpt {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
  font-weight: 300;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--purple);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: gap 0.2s;
}

.read-more:hover { gap: 12px; }

/* ─── ARTICLE GRID ─── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 72px;
}

.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(109,40,217,0.08);
}

.card-image {
  height: 160px;
  background: linear-gradient(135deg, #1E1040, #0B1930);
  position: relative;
  overflow: hidden;
}

.card-image::after {
  content: attr(data-job);
  position: absolute;
  bottom: 12px; left: 16px;
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.card-body { padding: 20px; }

.card-category {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--purple-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.card-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.card-title a { text-decoration: none; color: var(--text); transition: color 0.2s; }
.card-title a:hover { color: var(--purple); }

.card-excerpt {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.card-read-time {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.card-arrow {
  width: 28px; height: 28px;
  background: var(--bg2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--purple);
  transition: background 0.2s, color 0.2s;
}

.article-card:hover .card-arrow {
  background: var(--purple);
  color: #fff;
}

/* ─── TOOL SPOTLIGHT ─── */
.tool-spotlight {
  background: var(--navy);
  border-radius: 20px;
  padding: 48px;
  margin-bottom: 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.tool-spotlight::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(ellipse, rgba(109,40,217,0.2), transparent 70%);
  pointer-events: none;
}

.spotlight-label {
  font-family: var(--mono);
  font-size: 10px;
  color: #8B5CF6;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 16px;
}

.spotlight-title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.spotlight-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin-bottom: 28px;
  font-weight: 300;
}

.spotlight-tools {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tool-row {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tool-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.tool-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 2px;
}

.tool-commission {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
}

.tool-badge {
  background: rgba(109,40,217,0.3);
  color: #A78BFA;
  font-family: var(--mono);
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.05em;
  margin-top: 4px;
  display: inline-block;
}

.tool-right { text-align: right; }

/* ─── FOOTER ─── */
footer {
  background: var(--navy);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: #8B5CF6; }

.footer-copy {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.05em;
}

/* ─── PAGE HEADER (inner pages) ─── */
.page-header {
  background: var(--navy);
  padding: 64px 48px 56px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(ellipse, rgba(109,40,217,0.12), transparent 70%);
  pointer-events: none;
}

.page-header h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  color: #fff;
  letter-spacing: -1.5px;
  max-width: 700px;
  margin-bottom: 12px;
}

.page-header p {
  font-size: 16px;
  color: rgba(255,255,255,0.5);
  max-width: 520px;
  line-height: 1.7;
  font-weight: 300;
}

/* ─── ARTICLE PAGE ─── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 48px;
}

.article-body h2 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  margin: 40px 0 16px;
  letter-spacing: -0.3px;
}

.article-body h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 12px;
  letter-spacing: -0.2px;
}

.article-body p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 20px;
}

.article-body ul, .article-body ol {
  margin: 0 0 20px 24px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
}

.article-body li { margin-bottom: 8px; }

.article-body blockquote {
  border-left: 3px solid var(--purple);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--bg2);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--muted);
}

/* Sidebar */
.sidebar {}

.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-widget h3 {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.2px;
}

.sidebar-tool {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.sidebar-tool:last-child { border-bottom: none; }

.sidebar-tool-name {
  font-size: 14px;
  font-weight: 600;
}

.sidebar-tool-cat {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}

.sidebar-tool-link {
  font-size: 12px;
  color: var(--purple);
  text-decoration: none;
  font-weight: 600;
}

.sidebar-tool-link:hover { text-decoration: underline; }

.sidebar-cta {
  background: var(--navy);
  border: none;
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
}

.sidebar-cta h3 {
  color: #fff;
  margin-bottom: 10px;
}

.sidebar-cta p {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* ─── ABOUT / DISCLAIMER PAGES ─── */
.content-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 48px;
}

.content-page h2 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  margin: 40px 0 16px;
  letter-spacing: -0.3px;
}

.content-page p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 20px;
}

.content-page ul {
  margin: 0 0 20px 24px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
}

.content-page li { margin-bottom: 8px; }

/* ─── ADMIN PAGE ─── */
.admin-login {
  max-width: 400px;
  margin: 80px auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px 36px;
  text-align: center;
}

.admin-login h2 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.admin-login p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
}

.admin-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 14px;
  margin-bottom: 16px;
  outline: none;
  transition: border-color 0.2s;
}

.admin-input:focus { border-color: var(--purple); }

.admin-btn {
  width: 100%;
  background: linear-gradient(135deg, #6D28D9, #2563EB);
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.admin-btn:hover { opacity: 0.9; }

.admin-error {
  color: #EF4444;
  font-size: 13px;
  margin-top: 12px;
  display: none;
}

.admin-panel {
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px;
}

.admin-panel h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 32px;
}

.admin-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 48px;
}

.admin-form h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--purple); }

.form-group textarea { min-height: 200px; resize: vertical; }

.admin-articles-list {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.admin-articles-list h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  padding: 24px 32px 16px;
}

.admin-article-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  border-top: 1px solid var(--border);
}

.admin-article-row:hover { background: var(--bg); }

.admin-article-title {
  font-weight: 600;
  font-size: 14px;
}

.admin-article-cat {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--purple-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 2px;
}

.admin-article-delete {
  color: #EF4444;
  font-size: 12px;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--sans);
  font-weight: 600;
  transition: opacity 0.2s;
}

.admin-article-delete:hover { opacity: 0.7; }

.admin-empty {
  padding: 32px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.admin-success {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 20px;
  display: none;
}

/* ─── ANIMATIONS ─── */
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { order: -1; }
}

@media (max-width: 768px) {
  .site-header { padding: 0 24px; }
  nav { display: none; }
  nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--navy);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .mobile-toggle { display: block; }
  .hero { padding: 64px 24px 56px; }
  .categories-bar { padding: 0 24px; }
  .main { padding: 48px 24px; }
  .featured { grid-template-columns: 1fr; gap: 32px; }
  .featured-image { height: 220px; }
  .articles-grid { grid-template-columns: 1fr; }
  .tool-spotlight { grid-template-columns: 1fr; padding: 32px; }
  footer {
    flex-direction: column;
    gap: 24px;
    text-align: center;
    padding: 36px 24px;
  }
  .page-header { padding: 48px 24px 40px; }
  .article-layout { padding: 48px 24px; }
  .content-page { padding: 48px 24px; }
  .admin-panel { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 36px; letter-spacing: -1px; }
  .featured-content h2 { font-size: 24px; }
  .spotlight-title { font-size: 24px; }
}
