/*
Theme Name: PunMeaning Child
Description: Clean Purple & Gold theme for PunMeaning.Online
Template: generatepress
Version: 3.0
Text Domain: punmeaning-child
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=DM+Sans:wght@400;500;600;700&display=swap');

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
  --purple:      #5B2D8E;
  --purple-dark: #3D1A6E;
  --gold:        #D4AF37;
  --gold-light:  #F0CC50;
  --white:       #FFFFFF;
  --bg:          #F8F6FF;
  --border:      #E5DCFA;
  --text:        #1E1028;
  --muted:       #6B5C82;
  --radius:      10px;
  --shadow:      0 2px 16px rgba(91,45,142,0.10);
  --font-head:   'Playfair Display', Georgia, serif;
  --font-body:   'DM Sans', sans-serif;
}

/* =============================================
   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(--purple); text-decoration: none; }
a:hover { color: var(--gold); }

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

p { margin: 0 0 16px; color: #3D2A5A; }

/* =============================================
   GENERATEPRESS OVERRIDES — DISABLE DEFAULTS
   ============================================= */
.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; }

/* =============================================
   SITE HEADER — TOP BAR
   ============================================= */
#site-header,
.site-header {
  background: var(--purple-dark) !important;
  border-bottom: 3px solid var(--gold) !important;
}

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

/* Site Logo / Title */
.site-title {
  font-family: var(--font-head) !important;
  font-size: 1.6rem !important;
  font-weight: 900 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.site-title a {
  color: var(--gold) !important;
  text-decoration: none !important;
}

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

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

/* =============================================
   NAVIGATION — CATEGORIES IN HEADER
   ============================================= */
.main-navigation ul,
.nav-primary ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  gap: 4px !important;
  flex-wrap: wrap;
}

.main-navigation ul li,
.nav-primary ul li {
  margin: 0 !important;
}

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

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

/* Mobile hamburger */
.menu-toggle {
  background: transparent !important;
  border: 2px solid rgba(255,255,255,0.4) !important;
  color: white !important;
  border-radius: 6px !important;
  padding: 6px 10px !important;
}

/* =============================================
   MAIN LAYOUT
   ============================================= */
.site-content, #content {
  background: var(--bg);
}

/* Inside site inner — the GP content wrapper */
.inside-site-inner {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 30px 24px !important;
  display: grid !important;
  grid-template-columns: 1fr 300px !important;
  gap: 30px !important;
  align-items: start !important;
}

/* =============================================
   HOMEPAGE FULL WIDTH (no sidebar hero)
   ============================================= */
.home .inside-site-inner {
  display: block !important;
  max-width: 100% !important;
  padding: 0 !important;
}

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

/* =============================================
   CONTENT AREA
   ============================================= */
.content-area {
  min-width: 0;
}

/* =============================================
   ARTICLE CARDS (Blog / Archive)
   ============================================= */
.pm-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.pm-card:hover {
  box-shadow: 0 6px 30px rgba(91,45,142,0.16);
  transform: translateY(-2px);
}

.pm-card-inner {
  padding: 22px 24px;
}

.pm-card-cat {
  display: inline-block;
  background: #F0EAFF;
  color: var(--purple);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.pm-card-title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  margin: 0 0 10px;
  line-height: 1.3;
}

.pm-card-title a { color: var(--purple-dark); }
.pm-card-title a:hover { color: var(--purple); }

.pm-card-excerpt {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 14px;
}

.pm-card-meta {
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.pm-card-meta a { color: var(--purple); font-weight: 600; }
.pm-card-meta a:hover { color: var(--gold); }

.pm-read-more {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 20px;
  background: var(--purple);
  color: white !important;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: background 0.2s;
}
.pm-read-more:hover { background: var(--purple-dark) !important; color: white !important; }

/* =============================================
   SINGLE POST STYLING
   ============================================= */
.single .pm-article-header {
  background: linear-gradient(135deg, var(--purple-dark), var(--purple));
  padding: 40px 30px;
  margin: -30px -24px 30px;
  border-radius: 0;
}

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

.single .pm-article-header .pm-article-meta {
  color: rgba(255,255,255,0.7);
  font-size: 0.82rem;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.single .pm-article-header .pm-article-meta a {
  color: var(--gold-light);
}

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

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

.single .entry-content h3 {
  font-size: 1.1rem;
  color: var(--purple);
  margin: 22px 0 10px;
}

.single .entry-content ul,
.single .entry-content ol {
  padding-left: 22px;
  color: #3D2A5A;
}

.single .entry-content ul li,
.single .entry-content ol li {
  margin-bottom: 8px;
}

.single .entry-content strong { color: var(--purple-dark); }

.single .entry-content blockquote {
  border-left: 4px solid var(--gold);
  background: #F8F4FF;
  margin: 20px 0;
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--purple-dark);
}

/* =============================================
   SIDEBAR WIDGETS
   ============================================= */
.widget-area {
  min-width: 0;
}

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

.widget-title {
  font-family: var(--font-head) !important;
  font-size: 1rem !important;
  color: var(--purple-dark) !important;
  font-weight: 700 !important;
  padding-bottom: 10px !important;
  margin-bottom: 14px !important;
  border-bottom: 2px solid var(--gold) !important;
}

/* Search widget */
.widget.widget_search .search-form {
  display: flex;
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--border);
}

.widget.widget_search .search-field {
  flex: 1;
  padding: 9px 14px;
  border: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  background: white;
}

.widget.widget_search .search-submit {
  padding: 9px 16px;
  background: var(--purple);
  color: white;
  border: none;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
  font-family: var(--font-body);
}
.widget.widget_search .search-submit:hover { background: var(--purple-dark); }

/* Recent posts widget */
.widget_recent_entries ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget_recent_entries ul li {
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  line-height: 1.4;
}

.widget_recent_entries ul li:last-child { border-bottom: none; }

.widget_recent_entries ul li a {
  color: var(--purple-dark);
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

.widget_recent_entries ul li a:hover { color: var(--purple); }

.post-date {
  font-size: 0.75rem;
  color: var(--muted);
}

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

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

.widget_categories ul li:last-child { border-bottom: none; }

.widget_categories ul li a {
  color: var(--purple);
  font-weight: 600;
}

.widget_categories ul li a:hover { color: var(--gold); }

/* Tag cloud */
.tagcloud a {
  display: inline-block;
  background: #F0EAFF;
  color: var(--purple) !important;
  border-radius: 20px;
  padding: 4px 12px;
  margin: 3px;
  font-size: 0.8rem !important;
  font-weight: 600;
  transition: all 0.2s;
}
.tagcloud a:hover {
  background: var(--purple);
  color: white !important;
}

/* =============================================
   HOMEPAGE SECTIONS
   ============================================= */

/* Hero Banner */
.pm-hero {
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 100%);
  padding: 60px 24px 70px;
  text-align: center;
}

.pm-hero h1 {
  color: white;
  font-size: clamp(1.9rem, 5vw, 3rem);
  margin-bottom: 14px;
}

.pm-hero h1 span { color: var(--gold-light); }

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

/* Hero search */
.pm-search-bar {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
}

.pm-search-bar input {
  flex: 1;
  padding: 14px 22px;
  border: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
}

.pm-search-bar button {
  padding: 14px 26px;
  background: var(--gold);
  color: var(--purple-dark);
  border: none;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.pm-search-bar button:hover { background: var(--gold-light); }

/* Homepage content area with sidebar */
.pm-home-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 24px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
  align-items: start;
}

.pm-home-main {}
.pm-home-sidebar {}

/* Section heading */
.pm-section-title {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--purple-dark);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Article grid */
.pm-articles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.pm-articles-grid .pm-card {
  margin-bottom: 0;
}

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

.pm-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 24px;
}

.pm-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: center;
  margin-bottom: 20px;
}

.pm-footer-nav a {
  color: rgba(255,255,255,0.75) !important;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.pm-footer-nav a:hover {
  color: var(--gold-light) !important;
}

.pm-footer-bottom {
  text-align: center;
  padding: 16px 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

/* Override GP footer */
.site-info {
  display: none !important;
}

/* =============================================
   BREADCRUMB
   ============================================= */
.pm-breadcrumb {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 20px;
  padding: 10px 0;
}

.pm-breadcrumb a { color: var(--purple); font-weight: 600; }
.pm-breadcrumb a:hover { color: var(--gold); }
.pm-breadcrumb span { margin: 0 6px; color: var(--border); }

/* =============================================
   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: 8px;
  border: 1px solid var(--border);
  background: white;
  color: var(--purple);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: all 0.2s;
}

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

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .inside-site-inner {
    grid-template-columns: 1fr !important;
  }
  .pm-home-wrapper {
    grid-template-columns: 1fr;
  }
  .pm-articles-grid {
    grid-template-columns: 1fr;
  }
  .pm-header-inner {
    height: auto;
    padding: 12px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .main-navigation ul,
  .nav-primary ul {
    flex-wrap: wrap !important;
    gap: 4px !important;
  }
}

@media (max-width: 600px) {
  .pm-hero { padding: 40px 16px 50px; }
  .pm-search-bar { flex-direction: column; border-radius: 10px; }
  .pm-search-bar input,
  .pm-search-bar button { border-radius: 8px; }
  .pm-home-wrapper { padding: 20px 16px; }
  .inside-site-inner { padding: 20px 16px !important; }
}

/* =============================================
   CUSTOM LOGO STYLES
   ============================================= */

/* Logo wrapper */
.pm-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none !important;
}

/* The actual logo image */
.pm-logo-link img,
.custom-logo-link img,
.custom-logo {
    max-height: 60px !important;
    width: auto !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Hide GP's own logo wrapper if it interferes */
.site-branding .custom-logo-link {
    display: flex !important;
    align-items: center !important;
}

/* Make sure logo container is visible */
.site-branding {
    display: flex !important;
    align-items: center !important;
}

/* GP generates .custom-logo class on the img */
img.custom-logo {
    max-height: 60px !important;
    height: 60px !important;
    width: auto !important;
    display: block !important;
}
