/*
Theme Name: Cumulative GPA Theme
Theme URI: https://cumulativegpa.com
Author: CumulativeGPA Design System
Author URI: https://cumulativegpa.com
Description: Official custom theme for CumulativeGPA.com with 100% unified design, Inter typography, 1240px container, and sticky glassmorphic navbar.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: cumulativegpa
*/

/* CSS DESIGN SYSTEM - CUMULATIVE GPA REPLICA */
:root {
  /* Brand Palette */
  --bg-navy: #0f1c3f; /* Deep blue header */
  --text-dark: #0f213a; /* Main dark headings */
  --text-body: #475569; /* Slate paragraph text */
  --text-muted: #64748b; /* Lighter slate details */
  --border-color: #e2e8f0; /* Light borders */
  --body-bg: #f8fafc; /* Page backdrop */
  
  --primary-blue: #1e40af; /* Main CTA blue */
  --primary-blue-hover: #1d4ed8;
  --accent-green: #16a34a; /* Success / High scores */
  --accent-green-bg: #dcfce7;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.05), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
  --shadow-premium: 0 20px 25px -5px rgba(15, 23, 42, 0.04), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  
  --font-heading: 'Outfit', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

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

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

/* NAVBAR */
.navbar-wrapper {
  background-color: var(--bg-navy);
  color: #ffffff;
  padding: 16px 0;
  border-bottom: 4px solid var(--primary-blue);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.navbar-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
}

.brand-logo i {
  font-size: 28px;
  color: #60a5fa;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.brand-tagline {
  font-size: 11px;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

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

.nav-link {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link i {
  font-size: 10px;
  color: #64748b;
}

.search-box {
  position: relative;
  width: 240px;
}

.search-box input {
  width: 100%;
  padding: 8px 12px;
  padding-right: 36px;
  border-radius: 999px;
  border: 1px solid #334155;
  background-color: #1e293b;
  color: #ffffff;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s, background-color 0.2s;
}

.search-box input:focus {
  border-color: #60a5fa;
  background-color: #0f172a;
}

.search-box i {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 14px;
}

/* TOP BANNER */
.top-banner-bar {
  background-color: #eff6ff;
  color: var(--primary-blue);
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid #dbeafe;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* APP LAYOUT */
.app-layout {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

/* BREADCRUMBS */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: var(--primary-blue);
}

.breadcrumbs i {
  font-size: 10px;
  color: #cbd5e1;
}

.breadcrumbs .active {
  color: var(--text-dark);
  font-weight: 600;
}

/* MAIN 2-COLUMN GRID */
.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
}

.content-column {
  min-width: 0;
}

.page-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.page-description {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-body);
  margin-bottom: 20px;
}

/* Hero Badges */
.hero-badges-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.green-badge { background-color: #dcfce7; color: #15803d; }
.blue-badge { background-color: #dbeafe; color: #1d4ed8; }
.purple-badge { background-color: #f3e8ff; color: #7e22ce; }
.orange-badge { background-color: #ffedd5; color: #c2410c; }

/* Meta Row */
.meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.author-link {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
}

/* Single Article Body */
.cgpa-single-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
}

.cgpa-single-card h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-dark);
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f1f5f9;
}

.cgpa-single-card h2:first-child {
  margin-top: 0;
}

.cgpa-single-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 24px 0 12px;
}

.cgpa-single-card p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-body);
  margin-bottom: 18px;
}

.cgpa-single-card ul, .cgpa-single-card ol {
  margin: 0 0 20px 24px;
  color: var(--text-body);
  line-height: 1.7;
}

.cgpa-single-card li {
  margin-bottom: 8px;
}

.cgpa-single-card a {
  color: var(--primary-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

/* Tables */
.cgpa-single-card table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.cgpa-single-card th {
  background-color: var(--bg-navy);
  color: #ffffff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
}

.cgpa-single-card td {
  padding: 12px 16px;
  border-top: 1px solid var(--border-color);
  color: var(--text-body);
}

.cgpa-single-card tr:nth-child(even) td {
  background-color: #f8fafc;
}

/* Sidebar Styling */
.sidebar-column {
  align-self: stretch;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-column > *:first-child {
  position: sticky;
  top: 90px;
}

.sidebar-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.sidebar-card h3, .sidebar-card h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-promo-card {
  background: linear-gradient(135deg, #0f1c3f 0%, #1e40af 100%);
  color: #ffffff;
}

.sidebar-promo-card h3 {
  color: #ffffff;
}

.sidebar-promo-card p {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 16px;
}

.sidebar-cta-btn {
  display: block;
  text-align: center;
  padding: 12px;
  background: #ffffff;
  color: var(--primary-blue);
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform 0.2s;
}

.sidebar-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-links li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  color: var(--text-body);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  transition: all 0.15s;
}

.sidebar-links li a:hover {
  background: #eff6ff;
  color: var(--primary-blue);
  border-color: #bfdbfe;
  transform: translateX(3px);
}

.gpa-guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.gpa-guide-badge {
  display: block;
  text-align: center;
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  background: #eff6ff;
  color: var(--primary-blue);
  border: 1px solid #dbeafe;
  transition: all 0.15s;
}

.gpa-guide-badge:hover {
  background: #dbeafe;
  transform: translateY(-2px);
}

/* FOOTER */
.footer-wrapper {
  background-color: var(--bg-navy);
  color: #cbd5e1;
  padding: 56px 0 32px;
  border-top: 1px solid #1e293b;
  margin-top: 48px;
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr) 1.2fr;
  gap: 40px;
}

.brand-logo-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
}

.brand-logo-footer i {
  color: #60a5fa;
  font-size: 24px;
}

.footer-brand-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 16px;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1e293b;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 13px;
  transition: background 0.2s, color 0.2s;
}

.social-icons a:hover {
  background: var(--primary-blue);
  color: #ffffff;
}

.footer-column h5 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links li a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-links li a:hover {
  color: #ffffff;
}

.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.subscribe-form input {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid #334155;
  background: #1e293b;
  color: #ffffff;
  font-size: 13px;
  outline: none;
}

.subscribe-form button {
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--primary-blue);
  color: #ffffff;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s;
}

.subscribe-form button:hover {
  background: var(--primary-blue-hover);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .main-grid {
    grid-template-columns: 1fr;
  }
  .sidebar-column {
    position: static;
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .navbar-container {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links {
    flex-wrap: wrap;
    gap: 14px;
  }
  .search-box {
    width: 100%;
  }
  .footer-container {
    grid-template-columns: 1fr;
  }
}
