/* Abrasive Media Selection Guide - Modern Industrial Design CSS */
:root {
  --primary: #0F1E36;        /* Deep Steel Blue */
  --primary-light: #1E3A8A;  /* Royal Blue Accent */
  --secondary: #475569;      /* Slate Gray */
  --accent: #2563EB;         /* Electric Blue */
  --accent-hover: #1D4ED8;   /* Darker Blue */
  --bg-light: #F8FAFC;       /* Soft Light Gray */
  --bg-white: #FFFFFF;
  --text-dark: #0F172A;      /* Near Black */
  --text-muted: #4B5563;     /* Gray */
  --border: #E2E8F0;         /* Light Border */
  --success: #10B981;        /* Forest Green */
  --warning: #F59E0B;        /* Industrial Orange/Yellow */
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary);
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 1.85rem; margin-bottom: 1rem; border-bottom: 2px solid var(--border); padding-bottom: 0.5rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.75rem; }
p { margin-bottom: 1.25rem; color: var(--text-muted); }

/* Layout Structure */
header {
  background-color: var(--primary);
  color: var(--bg-white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--bg-white);
  text-decoration: none;
}

.logo-icon {
  background: var(--accent);
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--border);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--bg-white);
  background-color: rgba(255,255,255,0.1);
}

.nav-cta {
  background-color: var(--accent);
  color: white !important;
  border-radius: 6px !important;
}

.nav-cta:hover {
  background-color: var(--accent-hover) !important;
}

/* Main Layout */
.main-wrapper {
  max-width: 1280px;
  margin: 2rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
}

/* Sidebar Menu */
.sidebar {
  background: var(--bg-white);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  height: fit-content;
  position: sticky;
  top: 90px;
}

.sidebar-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--secondary);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.sidebar-menu {
  list-style: none;
  margin-bottom: 1.5rem;
}

.sidebar-menu li {
  margin-bottom: 0.35rem;
}

.sidebar-menu a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 4px;
  transition: var(--transition);
}

.sidebar-menu a:hover, .sidebar-menu a.active {
  background-color: var(--bg-light);
  color: var(--accent);
  font-weight: 600;
}

/* Content Panel */
.content-panel {
  background: var(--bg-white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  min-height: 70vh;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1E293B 100%);
  color: white;
  padding: 4rem 3rem;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero h1 {
  color: white;
  font-size: 2.75rem;
}

.hero p {
  color: #94A3B8;
  font-size: 1.2rem;
  max-width: 800px;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--accent);
  color: white;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
}

.btn-secondary {
  background-color: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
}

.btn-secondary:hover {
  background-color: rgba(255,255,255,0.2);
}

/* Why Selection Matters Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: var(--radius);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

/* Custom Interactive Table styling */
.table-container {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th, td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

th {
  background-color: var(--primary);
  color: white;
  font-weight: 600;
}

tr:nth-child(even) {
  background-color: var(--bg-light);
}

/* Interactive Tools Styling */
.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

@media(max-width: 900px) {
  .tool-grid {
    grid-template-columns: 1fr;
  }
  .main-wrapper {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
  }
}

.tool-panel {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.tool-output {
  background: var(--primary);
  color: white;
  padding: 2rem;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tool-output h3 {
  color: white;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 0.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  background-color: white;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.metric-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.metric-val {
  font-weight: 700;
  color: var(--success);
}

.score-bar {
  background: rgba(255,255,255,0.1);
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 0.25rem;
}

.score-fill {
  background: var(--accent);
  height: 100%;
  border-radius: 4px;
}

/* Call to Action Banner */
.cta-banner {
  background: radial-gradient(circle at 10% 20%, var(--primary) 0%, #1E3A8A 100%);
  color: white;
  padding: 3rem;
  border-radius: var(--radius-lg);
  margin-top: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-banner h3 {
  color: white;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.cta-banner p {
  color: #94A3B8;
  margin-bottom: 0;
  max-width: 600px;
}

/* Author, Review Process cards */
.author-card {
  display: flex;
  gap: 1.5rem;
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  align-items: center;
}

.author-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.5rem;
}

/* Footer Styling */
footer {
  background-color: var(--primary);
  color: #94A3B8;
  padding: 3rem 2rem 1.5rem 2rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 2rem;
  margin-bottom: 1.5rem;
}

.footer-col h4 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: #94A3B8;
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.85rem;
}
