/*
Theme Name: Minnesota Green Guides
Theme URI: https://mngreenguides.com
Author: Minnesota Green Guides
Author URI: https://mngreenguides.com
Description: Custom WordPress theme for Minnesota Green Guides blog featuring Material Design 3 principles, matching the main site's branding and design system.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mngreenguides
Tags: blog, cannabis-consulting, material-design, custom-theme, responsive

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.
*/

/* ===================================
   Minnesota Green Guides - Custom WordPress Theme
   Enhanced with Material Design 3 principles
   ==================================== */

/* CSS Variables - Brand Colors & Design System */
:root {
    /* Brand Colors */
    --mg-primary: #4DB897;
    --mg-primary-dark: #2A7A5E;
    --mg-primary-light: #7DCFB2;
    --mg-gold: #D4A574;
    --mg-earth-brown: #8B7355;
    --mg-earth-tan: #D4C4A8;
    --mg-dark: #1a1a1a;
    --mg-gray: #6c757d;
    --mg-light-gray: #f8f9fa;

    /* Material Design 3 - Border Radius */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 28px;
    --radius-full: 9999px;

    /* Material Design 3 - Elevation Shadows */
    --shadow-1: 0 1px 2px 0 rgba(0,0,0,0.3), 0 1px 3px 1px rgba(0,0,0,0.15);
    --shadow-2: 0 1px 2px 0 rgba(0,0,0,0.3), 0 2px 6px 2px rgba(0,0,0,0.15);
    --shadow-3: 0 4px 8px 3px rgba(0,0,0,0.15), 0 1px 3px rgba(0,0,0,0.3);
    --shadow-4: 0 6px 10px 4px rgba(0,0,0,0.15), 0 2px 3px rgba(0,0,0,0.3);
    --shadow-5: 0 8px 12px 6px rgba(0,0,0,0.15), 0 4px 4px rgba(0,0,0,0.3);

    /* Material Design 3 - Easing */
    --easing-standard: cubic-bezier(0.2, 0.0, 0, 1.0);
    --easing-emphasized: cubic-bezier(0.4, 0.0, 0.2, 1);
    --easing-decelerated: cubic-bezier(0.0, 0.0, 0.2, 1);
    --easing-accelerated: cubic-bezier(0.4, 0.0, 1, 1);

    /* Spacing System (8px grid) */
    --space-1: 0.5rem;  /* 8px */
    --space-2: 1rem;    /* 16px */
    --space-3: 1.5rem;  /* 24px */
    --space-4: 2rem;    /* 32px */
    --space-5: 2.5rem;  /* 40px */
    --space-6: 3rem;    /* 48px */
}

/* Typography */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--mg-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-weight: 800;
    letter-spacing: -0.03em;
}

/* ==================
   NAVIGATION
   ================== */
.navbar {
    transition: all 0.3s var(--easing-standard);
    padding: 0.75rem 0;
    backdrop-filter: blur(10px);
}

.navbar-brand img {
    transition: all 0.3s var(--easing-standard);
    max-height: 90px;
    object-fit: cover;
    object-position: center;
    margin-top: -15px;
    margin-bottom: -15px;
}

.navbar .nav-link {
    font-weight: 500;
    color: var(--mg-dark);
    margin: 0 var(--space-1);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    transition: all 0.2s var(--easing-standard);
    position: relative;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: var(--mg-primary);
    background-color: rgba(77, 184, 151, 0.08);
}

.navbar .nav-link.active,
.navbar .nav-link.current-menu-item a {
    color: var(--mg-primary);
    background-color: rgba(77, 184, 151, 0.12);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: var(--shadow-2);
}

/* Navigation CTAs */
.navbar .btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Mobile nav buttons - stack vertically */
@media (max-width: 991px) {
    .navbar .d-flex.gap-2 {
        flex-direction: column;
        margin-top: 1rem;
        margin-left: 0 !important;
        gap: 0.5rem !important;
    }

    .navbar .btn-sm {
        width: 100%;
    }
}

/* ==================
   BUTTONS
   ================== */
.btn {
    font-weight: 600;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    transition: all 0.25s var(--easing-emphasized);
    border: none;
    box-shadow: var(--shadow-2);
}

.btn:hover, .btn:focus {
    transform: translateY(-2px);
    box-shadow: var(--shadow-3);
}

.btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-1);
}

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

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--mg-primary-dark);
    color: white;
}

.btn-light {
    background-color: #ffffff !important;
    border-color: #ffffff !important;
    color: var(--mg-primary-dark) !important;
    box-shadow: var(--shadow-2);
    font-weight: 700;
}

.btn-light:hover, .btn-light:focus {
    background-color: var(--mg-light-gray) !important;
    color: var(--mg-primary-dark) !important;
    box-shadow: var(--shadow-3);
}

/* ==================
   BLOG LAYOUT
   ================== */
.blog-container {
    padding-top: 120px;
    min-height: 100vh;
}

.blog-header {
    background: linear-gradient(135deg, var(--mg-primary) 0%, var(--mg-primary-dark) 100%);
    color: white;
    padding: 4rem 0 3rem;
    margin-bottom: 3rem;
}

.blog-header h1 {
    font-weight: 800;
    margin-bottom: 1rem;
}

/* Blog Posts */
.blog-post {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    margin-bottom: var(--space-5);
    box-shadow: var(--shadow-2);
    transition: all 0.3s var(--easing-standard);
}

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

.blog-post-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-3);
    color: var(--mg-dark);
}

.blog-post-title a {
    color: var(--mg-dark);
    text-decoration: none;
    transition: color 0.2s var(--easing-standard);
}

.blog-post-title a:hover {
    color: var(--mg-primary);
}

.blog-post-meta {
    color: var(--mg-gray);
    font-size: 0.9rem;
    margin-bottom: var(--space-3);
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.blog-post-meta i {
    margin-right: 0.5rem;
}

.blog-post-excerpt {
    color: var(--mg-dark);
    line-height: 1.8;
    margin-bottom: var(--space-3);
}

.blog-post-content {
    color: var(--mg-dark);
    line-height: 1.8;
}

.blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: var(--space-4) 0;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--mg-primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s var(--easing-standard);
}

.read-more:hover {
    color: var(--mg-primary-dark);
    transform: translateX(4px);
}

.read-more i {
    margin-left: 0.5rem;
    transition: transform 0.2s var(--easing-standard);
}

.read-more:hover i {
    transform: translateX(4px);
}

/* Sidebar */
.sidebar-widget {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
    box-shadow: var(--shadow-2);
}

.sidebar-widget h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-3);
    color: var(--mg-dark);
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-widget ul li {
    margin-bottom: var(--space-2);
}

.sidebar-widget ul li a {
    color: var(--mg-gray);
    text-decoration: none;
    transition: color 0.2s var(--easing-standard);
}

.sidebar-widget ul li a:hover {
    color: var(--mg-primary);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    margin: var(--space-5) 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--space-2);
    background: white;
    color: var(--mg-dark);
    text-decoration: none;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-1);
    transition: all 0.2s var(--easing-standard);
}

.pagination a:hover {
    background: var(--mg-primary);
    color: white;
    box-shadow: var(--shadow-2);
}

.pagination .current {
    background: var(--mg-primary);
    color: white;
}

/* ==================
   FOOTER
   ================== */
.footer {
    background-color: var(--mg-dark);
    color: white;
    padding: var(--space-6) 0;
    margin-top: var(--space-6);
}

.footer-logo {
    margin-top: -10px;
    margin-bottom: var(--space-3);
}

.footer h5 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: var(--space-3);
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s var(--easing-standard);
}

.footer a:hover {
    color: var(--mg-primary-light);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s var(--easing-standard);
}

.social-links a:hover {
    background-color: var(--mg-primary);
    border-color: var(--mg-primary);
    color: white;
}

/* ==================
   ACCESSIBILITY
   ================== */
a:focus, button:focus, input:focus, textarea:focus {
    outline: 3px solid var(--mg-primary);
    outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--mg-primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==================
   RESPONSIVE
   ================== */
@media (max-width: 768px) {
    .blog-post {
        padding: var(--space-4);
    }

    .blog-post-title {
        font-size: 1.5rem;
    }

    .blog-header {
        padding: 3rem 0 2rem;
    }
}
