/*
Theme Name: Pacific North North
Theme URI: https://pacificnorthnorth.com
Author: Pacific North North
Author URI: https://pacificnorthnorth.com
Description: Custom WordPress theme matching Pacific North North branding. Designed for headless CMS use.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pnn-theme
Tags: headless, cms, minimal, custom
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --pnn-green: #0A3740;
    --pnn-green-dark: #06242A;
    --pnn-green-light: #0D4B57;
    --pnn-gold: #B48C2D;
    --pnn-gold-light: #CBA84A;
    --pnn-gold-hover-dark: #9A7625;
    --pnn-cream: #F8F5E9;
    --pnn-text-dark: #1F2933;
    --pnn-text-muted: #6B7280;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--pnn-cream);
    color: var(--pnn-text-dark);
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    color: var(--pnn-green);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--pnn-text-dark);
}

a {
    color: var(--pnn-green);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--pnn-gold);
}

/* Header - Match PNN App Exactly */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: #0A3740;
    border-bottom: 2px solid #D4AF37;
    padding: 0;
}

.header-container {
    max-width: 1152px; /* max-w-6xl = 72rem = 1152px */
    margin: 0 auto;
    padding: 0 0.75rem; /* px-3 */
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 1rem; /* gap-4 */
}

@media (min-width: 640px) {
    .header-container {
        padding: 0 1rem; /* sm:px-4 */
    }
}

@media (min-width: 1024px) {
    .header-container {
        padding: 0 1.5rem; /* lg:px-6 */
    }
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-logo-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 0; /* py-2 */
    transition: opacity 0.2s ease;
}

.site-logo-link:hover {
    opacity: 0.9;
}

.site-logo {
    height: 2.5rem; /* h-10 = 40px */
    width: auto;
}

@media (min-width: 768px) {
    .site-logo {
        height: 3rem; /* md:h-12 = 48px */
    }
}

.site-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--pnn-cream);
    margin: 0;
}

/* Navigation - Match PNN App Exactly */
.site-navigation {
    display: flex;
    align-items: center;
    gap: 1.5rem; /* gap-6 */
    font-size: 0.875rem; /* text-sm */
    font-weight: 600; /* font-semibold */
    text-transform: uppercase;
    letter-spacing: 0.08em; /* tracking-[0.08em] */
}

.nav-link {
    color: #D4AF37;
    text-decoration: none;
    transition: color 0.2s ease;
    font-family: 'Outfit', sans-serif;
}

.nav-link:hover {
    color: #E8C85C; /* hover:text-[#E8C85C] */
}

/* Sign In Button - Match PNN App btn-primary exactly */
.nav-link.btn-primary {
    background-color: var(--pnn-gold);
    color: white;
    padding: 0.5rem 1rem; /* py-2 px-4 */
    border-radius: 0.5rem; /* rounded-lg */
    font-weight: 600; /* font-semibold */
    text-transform: none; /* normal-case */
    transition: all 0.2s ease; /* transition-all */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* shadow-md */
}

.nav-link.btn-primary:hover {
    background-color: var(--pnn-gold-hover-dark);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-lg */
    color: white;
}

/* Main Content */
.site-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    min-height: 60vh;
}

.content-area {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Posts */
.post {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(10, 55, 64, 0.1);
}

.post:last-child {
    border-bottom: none;
}

.post-title {
    margin-bottom: 0.5rem;
}

.post-title a {
    color: var(--pnn-green);
}

.post-title a:hover {
    color: var(--pnn-gold);
}

.post-meta {
    color: var(--pnn-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-content {
    margin-top: 1rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1rem 0;
}

/* Buttons */
.btn,
.button,
input[type="submit"] {
    background-color: var(--pnn-gold);
    color: var(--pnn-green);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-family: 'Outfit', sans-serif;
}

.btn:hover,
.button:hover,
input[type="submit"]:hover {
    background-color: var(--pnn-gold-light);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--pnn-gold);
    color: var(--pnn-gold);
}

.btn-secondary:hover {
    background-color: var(--pnn-gold);
    color: var(--pnn-green);
}

/* Footer - Match PNN App Exactly */
.site-footer {
    background-color: #06242A; /* var(--pnn-green-dark) */
    border-top: 1px solid rgba(180, 140, 45, 0.3);
    padding: 1rem 0; /* py-4 */
    margin-top: 4rem;
}

.footer-container {
    max-width: 1152px; /* max-w-6xl = 72rem = 1152px */
    margin: 0 auto;
    padding: 0 1rem; /* px-4 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem; /* gap-4 */
}

@media (min-width: 640px) {
    .footer-container {
        padding: 0 1.5rem; /* sm:px-6 */
    }
}

@media (min-width: 1024px) {
    .footer-container {
        padding: 0 2rem; /* lg:px-8 */
    }
}

@media (min-width: 768px) {
    .footer-container {
        flex-direction: row;
    }
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* gap-3 */
}

.footer-logo {
    height: 2.5rem; /* h-10 = 40px */
    width: 2.5rem; /* w-10 = 40px */
}

@media (min-width: 768px) {
    .footer-logo {
        height: 3rem; /* md:h-12 = 48px */
        width: 3rem; /* md:w-12 = 48px */
    }
}

.footer-copyright {
    font-size: 0.875rem; /* text-sm */
    color: rgba(180, 140, 45, 0.9);
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 1.5rem; /* gap-6 */
    font-size: 0.875rem; /* text-sm */
}

.footer-link {
    color: rgba(180, 140, 45, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: white;
}

/* WordPress Specific */
.wp-block-group,
.wp-block-columns,
.wp-block-column {
    margin-bottom: 1.5rem;
}

.wp-block-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.post-thumbnail,
.page-thumbnail {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

/* Additional responsive adjustments */
@media (max-width: 640px) {
    .site-navigation {
        gap: 1rem;
        font-size: 0.75rem;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .site-navigation ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .site-main {
        padding: 2rem 1rem;
    }
}

