/*
Theme Name: SDGPost Briefing
Theme URI: https://sdgpost.com
Author: SDGPost Media Group
Description: A high-authority editorial theme designed for UN SDG news, ESG commentary, and global sustainability policy briefs.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: sdgpost
*/

:root {
  --color-primary-cool: #0F2537;    /* Deep Ocean Navy */
  --color-secondary-cool: #2563EB;  /* Policy Blue */
  --color-primary-warm: #D96B27;    /* Earth Terracotta */
  --color-secondary-warm: #F59E0B;  /* Solar Amber */
  --color-bg-light: #F8FAF9;        /* Soft Sage Cream */
  --color-text-dark: #1E293B;       /* Charcoal Slate */
  --color-border: #E2E8F0;          /* Subtle Slate */
  --font-heading: 'Georgia', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

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

/* Header */
.site-header {
  background-color: var(--color-primary-cool);
  color: #ffffff;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 4px solid var(--color-primary-warm);
}

.site-header a {
  color: #ffffff;
  text-decoration: none;
}

.site-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.site-title span {
  color: var(--color-primary-warm);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.main-nav a:hover {
  color: var(--color-secondary-warm);
}

/* Goal Tracker Bar */
.sdg-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 2rem;
  overflow-x: auto;
  white-space: nowrap;
}

.sdg-badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  margin-right: 0.5rem;
  font-size: 0.75rem;
  font-weight: bold;
  color: #fff;
  border-radius: 3px;
  background-color: var(--color-primary-cool);
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  gap: 2.5rem;
}

/* Post Cards */
.post-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.post-meta {
  font-size: 0.85rem;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.post-meta .category {
  color: var(--color-primary-warm);
  font-weight: 700;
}

.post-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.post-title a {
  color: var(--color-primary-cool);
  text-decoration: none;
}

.post-title a:hover {
  color: var(--color-secondary-cool);
}

/* Sidebar & Newsletter Box */
.sidebar-widget {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.newsletter-box {
  background: linear-gradient(135deg, var(--color-primary-cool) 0%, #1E3A8A 100%);
  color: #ffffff;
  border: none;
}

.newsletter-box h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--color-secondary-warm);
}

.newsletter-box p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.newsletter-box input[type="email"] {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.newsletter-box button {
  width: 100%;
  padding: 0.75rem;
  background-color: var(--color-primary-warm);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}

.newsletter-box button:hover {
  background-color: var(--color-secondary-warm);
}

/* Footer */
.site-footer {
  background-color: var(--color-primary-cool);
  color: #94A3B8;
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
  font-size: 0.9rem;
  border-top: 1px solid var(--color-border);
}

/* Responsive Breakpoints */
@media screen and (max-width: 992px) {
    /* Stack content and sidebar on tablets and below */
    .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media screen and (max-width: 768px) {
    /* Adjust header and spacing for mobile phones */
    .site-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .container {
        margin: 1.5rem auto;
    }
    
    .sdg-bar {
        padding: 0.75rem 1rem;
    }
}
