﻿/*
Theme Name: RankForge Pro
Theme URI: https://rank-forge.live
Description: Custom High-Performance SEO & Developer Interview Theme for RankForge. Engineered for Bennett University CSET489 Capstone.
Author: RankForge Team (SEO157 - Lavansh Jindal & Utsav Goel)
Version: 2.1.0
Text Domain: rankforge-pro
*/

:root {
  --bg-primary: #0a0f1d;
  --bg-surface: #111827;
  --bg-surface-elevated: #1f2937;
  --bg-code: #030712;
  --border-subtle: #1f2937;
  --border-prominent: #374151;
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --accent-cyan: #38bdf8;
  --accent-blue: #0284c7;
  --accent-teal: #14b8a6;
  --accent-amber: #f59e0b;
  --accent-purple: #a855f7;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Fira Code", "Cascadia Code", Consolas, "Courier New", monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

.rf-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(10, 15, 29, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 1.5rem;
}

.rf-header-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rf-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.rf-logo-badge {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #ffffff;
  font-weight: 900;
  font-size: 1.1rem;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rf-brand-text {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.rf-brand-tagline {
  font-size: 0.75rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  font-weight: 600;
}

.rf-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.rf-nav-link {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.rf-nav-link:hover, .rf-nav-link.active {
  color: #ffffff;
  background-color: var(--bg-surface-elevated);
  text-decoration: none;
}

.rf-cta-btn {
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.3);
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rf-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.5);
}

.rf-mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-prominent);
  color: #ffffff;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
  cursor: pointer;
}

.rf-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.rf-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.rf-breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
}

.rf-breadcrumbs a:hover {
  color: var(--accent-cyan);
}

.rf-breadcrumbs-separator {
  color: var(--border-prominent);
}

.rf-hero {
  text-align: center;
  padding: 3.5rem 1rem 3rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 3.5rem;
}

.rf-academic-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(2, 132, 199, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent-cyan);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rf-hero h1 {
  font-size: 2.85rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #ffffff 40%, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rf-hero p.rf-lead {
  font-size: 1.18rem;
  color: var(--text-secondary);
  max-width: 820px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.rf-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.rf-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.rf-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.rf-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.rf-card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.rf-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.6rem;
}

.rf-card p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  flex-grow: 1;
  margin-bottom: 1.25rem;
}

.rf-card-link {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.rf-article-header {
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.5rem;
}

.rf-article-header h1 {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 1rem;
}

.rf-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.rf-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.rf-content h2 {
  font-size: 1.65rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 2.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-subtle);
  position: relative;
}

.rf-content h2::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background-color: var(--accent-cyan);
}

.rf-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.rf-content p {
  color: #cbd5e1;
  margin-bottom: 1.25rem;
  font-size: 1.02rem;
}

.rf-content ul, .rf-content ol {
  color: #cbd5e1;
  padding-left: 1.6rem;
  margin-bottom: 1.5rem;
}

.rf-content li {
  margin-bottom: 0.5rem;
}

.toc {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-prominent);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}

.toc strong {
  display: block;
  color: #ffffff;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}

.toc ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.toc li {
  margin-bottom: 0.45rem;
}

.toc a {
  color: var(--accent-cyan);
  font-weight: 500;
}

pre, .wp-block-code {
  background-color: var(--bg-code) !important;
  border: 1px solid var(--border-prominent) !important;
  border-radius: var(--radius-md) !important;
  padding: 1.25rem 1.5rem !important;
  margin: 1.5rem 0 !important;
  overflow-x: auto;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
}

code, .wp-block-code code {
  font-family: var(--font-mono) !important;
  color: #38bdf8 !important;
  font-size: 0.92rem !important;
  line-height: 1.6 !important;
  background: none !important;
}

p code, li code {
  background: var(--bg-surface-elevated) !important;
  border: 1px solid var(--border-prominent);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem !important;
  color: #38bdf8 !important;
}

table, .wp-block-table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2rem 0;
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-prominent);
}

th, .wp-block-table th {
  background-color: var(--bg-surface-elevated);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.92rem;
  text-align: left;
  padding: 0.9rem 1.25rem;
  border-bottom: 2px solid var(--border-prominent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

td, .wp-block-table td {
  padding: 0.85rem 1.25rem;
  color: #cbd5e1;
  font-size: 0.93rem;
  border-bottom: 1px solid var(--border-subtle);
}

tr:nth-child(even) td {
  background-color: rgba(255, 255, 255, 0.02);
}

tr:last-child td {
  border-bottom: none;
}

.rf-footer {
  background-color: #030712;
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 1.5rem 2rem;
  margin-top: 5rem;
}

.rf-footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.8fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.rf-footer-col h4 {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rf-footer-col p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.rf-footer-links {
  list-style: none;
  padding-left: 0;
}

.rf-footer-links li {
  margin-bottom: 0.6rem;
}

.rf-footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.rf-footer-links a:hover {
  color: var(--accent-cyan);
}

.rf-academic-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-prominent);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.rf-footer-bottom {
  max-width: 1140px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 900px) {
  .rf-cards-grid { grid-template-columns: 1fr; }
  .rf-footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .rf-hero h1 { font-size: 2.2rem; }
}

@media (max-width: 768px) {
  .rf-mobile-toggle { display: block; }
  .rf-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-prominent);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.75rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.7);
  }
  .rf-nav.open { display: flex; }
  .rf-nav-link { width: 100%; padding: 0.6rem 0.5rem; }
  .rf-cta-btn { width: 100%; text-align: center; }
  .rf-article-header h1 { font-size: 1.9rem; }
}
