/* ============================================================
   STEEL MIND — Main Stylesheet
   Dark mode, fitness & training aesthetic
   ============================================================ */

/* --- Google Fonts are loaded via <link> in HTML --- */

/* --- Variables --- */
:root {
  --bg:         #080808;
  --bg-card:    #131313;
  --bg-hover:   #1a1a1a;
  --border:     rgba(255, 255, 255, 0.07);
  --gold:       #FF1744;
  --gold-light: #FF6B6B;
  --silver:     #B8BEC6;
  --red:        #FF1744;
  --white:      #F0EDE8;
  --gray-soft:  #AAAAAA;
  --gray-muted: #666666;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width:    1160px;
  --radius:       6px;
  --transition:   0.2s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* --- Layout Utility --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header & Nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--white);
  text-transform: uppercase;
}

.logo-steel   { color: var(--silver); }
.logo-mind { color: var(--red); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.site-nav a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-soft);
  transition: color var(--transition);
}

.site-nav a:hover {
  color: var(--gold);
}

/* --- Hero Section --- */
.hero {
  padding: 100px 0 80px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--white);
  max-width: 780px;
  margin: 0 auto 24px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--gray-soft);
  max-width: 520px;
  line-height: 1.6;
  margin: 0 auto;
}

/* --- Gold Divider --- */
.gold-rule {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 40px 0;
}

/* --- Section Labels --- */
.section-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.section-label::before,
.section-label::after {
  content: '';
  display: block;
  flex: 1;
  height: 1px;
  background: var(--border);
  max-width: 80px;
}

/* --- Category Tags --- */
.tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(255, 23, 68, 0.35);
  border-radius: 2px;
  padding: 3px 10px;
}

/* --- Featured Post --- */
.featured-section {
  padding: 72px 0 60px;
  border-bottom: 1px solid var(--border);
}

.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.featured-card:hover {
  border-color: rgba(255, 23, 68, 0.3);
}

.featured-image {
  width: 100%;
  height: 380px;
  object-fit: cover;
  background: #1a1a1a;
}

/* Placeholder for when no image is set */
.featured-image-placeholder {
  width: 100%;
  height: 380px;
  background: linear-gradient(135deg, #141414 0%, #1f1f1f 50%, #161616 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 4rem;
  color: rgba(255, 23, 68, 0.15);
  letter-spacing: 0.05em;
}

.featured-body {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-body .tag {
  margin-bottom: 20px;
}

.featured-body h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 16px;
  transition: color var(--transition);
}

.featured-card:hover .featured-body h2 {
  color: var(--gold-light);
}

.featured-body .excerpt {
  color: var(--gray-soft);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.featured-meta {
  font-size: 0.78rem;
  color: var(--gray-muted);
  letter-spacing: 0.05em;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 28px;
  transition: gap var(--transition);
}

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

.read-more::after {
  content: '→';
}

/* --- Posts Grid --- */
.posts-section {
  padding: 72px 0 80px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

/* --- Post Card --- */
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 23, 68, 0.25);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.post-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #161616;
}

.post-card-image-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #141414, #1e1e1e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: rgba(255, 23, 68, 0.1);
}

.post-card-body {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-body .tag {
  margin-bottom: 14px;
  align-self: flex-start;
}

.post-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--white);
  margin-bottom: 12px;
  transition: color var(--transition);
}

.post-card:hover h3 {
  color: var(--gold-light);
}

.post-card-body .excerpt {
  font-size: 0.88rem;
  color: var(--gray-soft);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 20px;
}

.post-card-meta {
  font-size: 0.75rem;
  color: var(--gray-muted);
  letter-spacing: 0.04em;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* --- About Page --- */
.about-section {
  padding: 80px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 80px;
  align-items: start;
}

.about-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 32px;
  color: var(--white);
}

.about-content p {
  color: var(--gray-soft);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-sidebar {
  position: sticky;
  top: 88px;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.about-avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f1f1f, #2a2a2a);
  border: 2px solid rgba(255, 23, 68, 0.3);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: rgba(255, 23, 68, 0.4);
}

.about-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.about-card .bio-short {
  font-size: 0.9rem;
  color: var(--gray-soft);
  line-height: 1.65;
}

/* --- Article / Post Page --- */
.article-header {
  padding: 72px 0 52px;
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--gray-muted);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.breadcrumb a {
  color: var(--gray-muted);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--gold);
}

.breadcrumb-sep {
  color: var(--gray-muted);
  opacity: 0.4;
}

.article-header .tag {
  margin-bottom: 20px;
}

.article-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--white);
  max-width: 860px;
  margin-bottom: 24px;
}

.article-header .article-meta {
  font-size: 0.82rem;
  color: var(--gray-muted);
  letter-spacing: 0.06em;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.article-body p {
  font-size: 1.06rem;
  line-height: 1.85;
  color: #D8D5D0;
  margin-bottom: 28px;
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--white);
  margin: 52px 0 20px;
  line-height: 1.2;
}

.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  margin: 40px 0 16px;
}

.article-body blockquote {
  border-left: 3px solid var(--gold);
  margin: 40px 0;
  padding: 4px 0 4px 28px;
}

.article-body blockquote p {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--gray-soft);
  margin-bottom: 0;
}

.article-body ul, .article-body ol {
  padding-left: 24px;
  margin-bottom: 28px;
  color: #D8D5D0;
}

.article-body li {
  font-size: 1.06rem;
  line-height: 1.8;
  margin-bottom: 8px;
}

.article-body a {
  color: var(--gold);
  border-bottom: 1px solid rgba(255, 23, 68, 0.35);
  transition: border-color var(--transition);
}

.article-body a:hover {
  border-color: var(--gold);
}

.article-body img {
  width: 100%;
  border-radius: var(--radius);
  margin: 40px 0;
  border: 1px solid var(--border);
}

/* --- Post Back Link --- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-muted);
  margin: 48px 0 0;
  transition: color var(--transition), gap var(--transition);
}

.back-link::before {
  content: '←';
}

.back-link:hover {
  color: var(--gold);
  gap: 12px;
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 10px;
}

.footer-logo .logo-steel   { color: var(--silver); }
.footer-logo .logo-mind { color: var(--red); }

.footer-tagline {
  font-size: 0.85rem;
  color: var(--gray-muted);
}

.footer-nav {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer-nav a {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-muted);
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--gold);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--gray-muted);
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .featured-card {
    grid-template-columns: 1fr;
  }

  .featured-image-placeholder {
    height: 240px;
  }

  .featured-body {
    padding: 32px 28px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-nav {
    gap: 20px;
  }

  .hero {
    padding: 64px 0 56px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 28px;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }
}
