/*
Theme Name: SlangMeaning Child
Description: Professional Dictionary Style Theme for SlangMeaning.Online
Template: generatepress
Version: 1.0.0
Text Domain: slangmeaning-child
*/

@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700;900&family=Inter:wght@400;500;600;700&family=Fira+Code:wght@400;500&display=swap');

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
  --navy:        #0F2044;
  --navy-mid:    #1A3361;
  --navy-light:  #2A4A8A;
  --orange:      #F4622A;
  --orange-light:#FF8C5A;
  --orange-pale: #FFF0EB;
  --white:       #FFFFFF;
  --bg:          #F5F7FA;
  --bg-alt:      #EEF1F7;
  --border:      #DDE3EE;
  --text:        #0F2044;
  --text-mid:    #3D5080;
  --text-muted:  #7A8DB0;
  --radius:      10px;
  --radius-sm:   6px;
  --shadow:      0 2px 16px rgba(15,32,68,0.08);
  --shadow-hover:0 6px 32px rgba(15,32,68,0.14);
  --font-head:   'Merriweather', Georgia, serif;
  --font-body:   'Inter', sans-serif;
  --font-mono:   'Fira Code', monospace;
}

/* =============================================
   RESET BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.75;
  margin: 0;
}

img { max-width: 100%; height: auto; }
a { color: var(--navy-light); text-decoration: none; }
a:hover { color: var(--orange); }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 14px;
}

p { margin: 0 0 16px; color: var(--text-mid); }
strong { color: var(--navy); font-weight: 700; }

/* =============================================
   GENERATEPRESS OVERRIDES
   ============================================= */
.inside-header { padding: 0 !important; }
.site-header { padding: 0 !important; box-shadow: none !important; background: none !important; border: none !important; }
.nav-primary { background: none !important; }
.main-navigation { background: none !important; }
.inside-navigation { padding: 0 !important; }

/* =============================================
   HEADER — TOP BAR + NAV
   ============================================= */
#site-header, .site-header {
  background: var(--navy) !important;
  border-bottom: 3px solid var(--orange) !important;
  box-shadow: 0 2px 20px rgba(15,32,68,0.3) !important;
}

.sm-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

/* Logo */
.site-title {
  font-family: var(--font-head) !important;
  font-size: 1.5rem !important;
  font-weight: 900 !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap;
}

.site-title a {
  color: var(--white) !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.site-title a:hover { color: var(--orange-light) !important; }

.site-title span.sm-logo-dot {
  color: var(--orange);
}

.site-description { display: none !important; }

/* Header Search */
.sm-header-search {
  display: flex;
  flex: 1;
  max-width: 400px;
  border-radius: 50px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
}

.sm-header-search input {
  flex: 1;
  padding: 9px 18px;
  background: transparent;
  border: none;
  color: white;
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
}

.sm-header-search input::placeholder { color: rgba(255,255,255,0.45); }

.sm-header-search button {
  padding: 9px 18px;
  background: var(--orange);
  color: white;
  border: none;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.2s;
}

.sm-header-search button:hover { background: var(--orange-light); }

/* Navigation */
.main-navigation ul,
.nav-primary ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  gap: 2px !important;
}

.main-navigation ul li a,
.nav-primary ul li a {
  display: block !important;
  color: rgba(255,255,255,0.8) !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  padding: 7px 14px !important;
  border-radius: var(--radius-sm) !important;
  transition: all 0.2s !important;
  white-space: nowrap;
}

.main-navigation ul li a:hover,
.nav-primary ul li a:hover,
.main-navigation ul li.current-menu-item > a {
  background: rgba(255,255,255,0.12) !important;
  color: var(--orange-light) !important;
}

/* =============================================
   ALPHABET NAV BAR (below header)
   ============================================= */
.sm-alpha-bar {
  background: var(--navy-mid);
  padding: 10px 24px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sm-alpha-bar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 28px;
  border-radius: 4px;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  transition: all 0.2s;
  text-decoration: none;
}

.sm-alpha-bar a:hover {
  background: var(--orange);
  color: white;
}

/* =============================================
   HERO BANNER
   ============================================= */
.sm-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, var(--navy-light) 100%);
  padding: 60px 24px 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sm-hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.sm-hero-label {
  display: inline-block;
  background: var(--orange);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
}

.sm-hero h1 {
  color: white;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  margin-bottom: 14px;
  line-height: 1.15;
}

.sm-hero h1 em {
  color: var(--orange-light);
  font-style: normal;
}

.sm-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 32px;
}

/* Hero Search */
.sm-hero-search {
  display: flex;
  max-width: 560px;
  margin: 0 auto;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
}

.sm-hero-search input {
  flex: 1;
  padding: 16px 24px;
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  color: var(--text);
}

.sm-hero-search button {
  padding: 16px 28px;
  background: var(--orange);
  color: white;
  border: none;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  font-family: var(--font-body);
}

.sm-hero-search button:hover { background: var(--orange-light); }

/* =============================================
   MAIN LAYOUT
   ============================================= */
.sm-main-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
  align-items: start;
}

/* =============================================
   SECTION TITLE
   ============================================= */
.sm-section-title {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--orange);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* =============================================
   WORD CARD — Main content card
   ============================================= */
.sm-word-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  gap: 0;
}

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

/* Left color strip */
.sm-word-card-strip {
  width: 5px;
  background: var(--orange);
  flex-shrink: 0;
}

.sm-word-card-body {
  padding: 20px 22px;
  flex: 1;
}

/* Word + pronunciation */
.sm-word-title {
  font-family: var(--font-head);
  font-size: 1.35rem;
  color: var(--navy);
  margin: 0 0 4px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.sm-word-title a { color: inherit; }
.sm-word-title a:hover { color: var(--orange); }

.sm-word-pron {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
  background: var(--bg-alt);
  padding: 2px 8px;
  border-radius: 4px;
}

.sm-word-pos {
  display: inline-block;
  background: var(--orange-pale);
  color: var(--orange);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  font-family: var(--font-mono);
}

.sm-word-def {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 10px;
}

.sm-word-example {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
  border-left: 3px solid var(--border);
  padding-left: 12px;
  margin-bottom: 14px;
}

.sm-word-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.sm-word-cat {
  display: inline-block;
  background: var(--bg-alt);
  color: var(--navy-light);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  font-family: var(--font-mono);
  text-decoration: none;
}

.sm-word-cat:hover { background: var(--navy-light); color: white; }

.sm-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--orange);
  text-decoration: none;
  transition: gap 0.2s;
}

.sm-read-more:hover { gap: 10px; color: var(--orange); }
.sm-read-more::after { content: '→'; }

/* =============================================
   ARTICLE GRID (homepage 2-col)
   ============================================= */
.sm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 30px;
}

/* Blog-style card */
.sm-blog-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

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

.sm-blog-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.sm-blog-ph {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sm-blog-ph span {
  font-family: var(--font-head);
  font-size: 52px;
  color: white;
  opacity: 0.3;
  font-weight: 900;
}

.sm-blog-body { padding: 16px; }

.sm-blog-cat {
  display: inline-block;
  background: var(--orange-pale);
  color: var(--orange);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  text-decoration: none;
}

.sm-blog-title {
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 8px;
  display: block;
  text-decoration: none;
}

.sm-blog-title:hover { color: var(--orange); }

.sm-blog-excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sm-blog-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.sm-blog-read {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--orange);
  text-decoration: none;
}

/* =============================================
   SIDEBAR
   ============================================= */
.sm-sidebar { min-width: 0; }

.sm-widget {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 22px;
}

.sm-widget-title {
  font-family: var(--font-head);
  font-size: 0.95rem;
  color: var(--navy);
  font-weight: 700;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--orange);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Search widget */
.sm-search {
  display: flex;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--border);
}

.sm-search input {
  flex: 1;
  padding: 9px 14px;
  border: none;
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
  color: var(--text);
  background: white;
}

.sm-search button {
  padding: 9px 16px;
  background: var(--navy);
  color: white;
  border: none;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.2s;
}

.sm-search button:hover { background: var(--navy-light); }

/* Recent posts in sidebar */
.sm-recent-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sm-recent-list li {
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.sm-recent-list li:last-child { border-bottom: none; }

.sm-recent-list li .sm-r-num {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--orange);
  font-weight: 900;
  min-width: 22px;
  line-height: 1.2;
}

.sm-recent-list li a {
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
  display: block;
}

.sm-recent-list li a:hover { color: var(--orange); }

.sm-recent-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Categories widget */
.sm-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sm-cat-list li {
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}

.sm-cat-list li:last-child { border-bottom: none; }
.sm-cat-list li a { color: var(--navy-light); font-weight: 600; }
.sm-cat-list li a:hover { color: var(--orange); }
.sm-cat-list li span {
  background: var(--bg-alt);
  color: var(--text-muted);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-family: var(--font-mono);
}

/* Tag cloud */
.sm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sm-tags a {
  display: inline-block;
  background: var(--bg-alt);
  color: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.2s;
  text-decoration: none;
}

.sm-tags a:hover {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
}

/* Word of the Day widget */
.sm-wotd {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 22px;
  color: white;
}

.sm-wotd-label {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange-light);
  font-family: var(--font-mono);
  margin-bottom: 8px;
  display: block;
}

.sm-wotd-word {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 900;
  color: white;
  margin-bottom: 4px;
}

.sm-wotd-pos {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--orange-light);
  margin-bottom: 10px;
  display: block;
}

.sm-wotd-def {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin-bottom: 14px;
}

.sm-wotd-btn {
  display: inline-block;
  background: var(--orange);
  color: white;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}

.sm-wotd-btn:hover { background: var(--orange-light); color: white; }

/* =============================================
   SINGLE POST
   ============================================= */
.single .sm-article-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 40px 30px;
  border-radius: var(--radius) var(--radius) 0 0;
}

.single .sm-article-header h1 {
  color: white;
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  margin-bottom: 12px;
}

.single .entry-content {
  background: white;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 30px;
  border: 1px solid var(--border);
  border-top: none;
  box-shadow: var(--shadow);
}

.single .entry-content h2 {
  font-size: 1.3rem;
  color: var(--navy);
  border-left: 4px solid var(--orange);
  padding-left: 14px;
  margin: 28px 0 14px;
}

.single .entry-content h3 {
  font-size: 1.05rem;
  color: var(--navy-light);
  margin: 20px 0 10px;
}

.single .entry-content blockquote {
  border-left: 4px solid var(--orange);
  background: var(--orange-pale);
  margin: 20px 0;
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--navy);
}

/* =============================================
   FOOTER
   ============================================= */
#site-footer, .site-footer {
  background: var(--navy) !important;
  border-top: 3px solid var(--orange) !important;
  color: rgba(255,255,255,0.7) !important;
  padding: 0 !important;
  margin-top: 0 !important;
}

.sm-footer-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 28px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}

.sm-footer-title {
  font-family: var(--font-head);
  color: var(--orange-light);
  font-size: 1rem;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sm-footer-about {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  line-height: 1.75;
}

.sm-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sm-footer-links li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sm-footer-links li:last-child { border-bottom: none; }

.sm-footer-links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  transition: color 0.2s;
}

.sm-footer-links a:hover { color: var(--orange-light); }

.sm-footer-bottom {
  text-align: center;
  padding: 16px 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  font-family: var(--font-mono);
}

.sm-footer-bottom a { color: var(--orange-light); }
.site-info { display: none !important; }

/* =============================================
   PAGINATION
   ============================================= */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 30px 0;
  flex-wrap: wrap;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: white;
  color: var(--navy-light);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: all 0.2s;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
}

/* =============================================
   BREADCRUMB
   ============================================= */
.sm-breadcrumb {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-family: var(--font-mono);
}

.sm-breadcrumb a { color: var(--navy-light); font-weight: 600; }
.sm-breadcrumb a:hover { color: var(--orange); }
.sm-breadcrumb span { margin: 0 6px; color: var(--border); }

/* =============================================
   HOMEPAGE OVERRIDES
   ============================================= */
.home .content-area,
.home #primary,
.home .site-main {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}

.home .widget-area,
.home #secondary { display: none !important; }

.home .inside-site-inner {
  max-width: 100% !important;
  padding: 0 !important;
}

.home .inside-article { padding: 0 !important; }
.home .entry-header { display: none !important; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .sm-main-wrap { grid-template-columns: 1fr; }
  .sm-footer-wrap { grid-template-columns: 1fr; gap: 28px; }
  .sm-grid { grid-template-columns: 1fr; }
  .sm-header-search { display: none; }
}

@media (max-width: 600px) {
  .sm-hero { padding: 44px 16px 56px; }
  .sm-hero-search { flex-direction: column; border-radius: var(--radius); }
  .sm-hero-search input,
  .sm-hero-search button { border-radius: var(--radius-sm); }
  .sm-alpha-bar { display: none; }
  .sm-header-inner { height: auto; padding: 12px 16px; }
}
