/* WelcomeSign Blog Styles
 * Based on main site common.css theme
 */

/* ============================================
   CSS Variables (Theme Colors - matches main site)
   ============================================ */
:root {
    --navy: #1e3a5f;
    --navy-dark: #152a45;
    --navy-light: #2d4a6f;
    --orange: #f97316;
    --orange-light: #fb923c;
    --orange-glow: rgba(249, 115, 22, 0.2);
    --cream: #fefbf6;
    --warm-white: #fffdf9;
    --text: #1e3a5f;
    --text-light: #5a7a9a;
    --success: #10b981;
    --border: rgba(30, 58, 95, 0.1);
    --max-width: 1000px;
    --max-width-narrow: 700px;
}

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

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--cream);
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-weight: 400;
    line-height: 1.2;
}

a {
    color: var(--orange);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ============================================
   Layout
   ============================================ */
.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.content-narrow {
    max-width: var(--max-width-narrow);
    margin: 0 auto;
}

/* ============================================
   Navigation (matches main site)
   ============================================ */
nav.ws-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(254, 251, 246, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Nunito', 'DM Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo:hover {
    color: var(--navy);
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-link {
    color: var(--navy);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(30, 58, 95, 0.05);
    text-decoration: none;
}

.nav-cta {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    color: white;
}

.nav-cta:hover {
    transform: translateY(-1px);
    text-decoration: none;
    color: white;
}

.nav-cta-orange {
    background: var(--orange);
}

.nav-cta-orange:hover {
    background: var(--orange-light);
}

.nav-cta-navy {
    background: var(--navy);
}

.nav-cta-navy:hover {
    background: var(--navy-dark);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    font-size: 1rem;
    cursor: pointer;
    border: none;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background: var(--orange);
    color: white;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover {
    background: var(--orange-light);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

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

.btn-secondary:hover {
    background: rgba(30, 58, 95, 0.05);
    border-color: var(--navy);
    color: var(--navy);
}

/* ============================================
   Section Styles
   ============================================ */
.section-label {
    display: inline-block;
    background: var(--orange);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--navy);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
}

/* ============================================
   Blog Hero Section
   ============================================ */
.blog-hero {
    padding: 8rem 2rem 4rem;
    background: var(--navy);
    color: white;
    text-align: center;
}

.blog-hero .section-label {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.blog-hero .section-title {
    color: white;
    font-size: 2.75rem;
}

.blog-hero .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
    margin: 0 auto;
}

/* ============================================
   Blog List Section
   ============================================ */
.blog-list {
    padding: 4rem 2rem;
    background: var(--cream);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.post-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.post-card:hover {
    border-color: var(--orange);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.post-card .post-image {
    display: block;
    overflow: hidden;
}

.post-card .post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-card .post-content {
    padding: 1.5rem;
}

.post-categories {
    margin-bottom: 0.75rem;
}

.category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--orange);
    background: var(--orange-glow);
    border-radius: 4px;
    text-decoration: none;
}

.category:hover {
    text-decoration: none;
    background: var(--orange);
    color: white;
}

.post-card h2 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.post-card h2 a {
    color: var(--navy);
    text-decoration: none;
}

.post-card h2 a:hover {
    color: var(--orange);
}

.post-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.post-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

.post-meta time {
    font-weight: 500;
}

.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

/* ============================================
   Pagination
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.page-info {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ============================================
   Blog CTA Section
   ============================================ */
.blog-cta {
    padding: 4rem 2rem;
    background: white;
}

.cta-box {
    max-width: 600px;
    margin: 0 auto;
    background: var(--cream);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
}

.cta-box h2 {
    font-size: 1.75rem;
    color: var(--navy);
    margin-bottom: 1rem;
}

.cta-box p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.cta-benefits {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.cta-benefit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.cta-benefit .check {
    color: var(--success);
    font-weight: bold;
}

/* ============================================
   Single Post Styles
   ============================================ */
.post-single {
    padding-top: 80px; /* Account for fixed nav */
}

.post-header {
    padding: 3rem 2rem;
    background: var(--navy);
    color: white;
    text-align: center;
}

.post-header .post-categories {
    margin-bottom: 1rem;
}

.post-header .category {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.post-header .category:hover {
    background: var(--orange);
}

.post-title {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.post-lead {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.post-header .post-meta {
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
}

.post-header .author {
    font-weight: 500;
}

/* Featured Image */
.post-featured-image {
    margin: 0;
    padding: 2rem;
    background: var(--cream);
}

.post-featured-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* Post Body */
.post-body {
    padding: 3rem 2rem;
    background: var(--cream);
}

.post-body h2 {
    font-size: 1.75rem;
    color: var(--navy);
    margin: 2.5rem 0 1rem;
}

.post-body h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--navy);
    margin: 2rem 0 0.75rem;
}

.post-body p {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.post-body ul,
.post-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.post-body li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.post-body blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--orange);
    background: white;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-light);
}

.post-body blockquote p:last-child {
    margin-bottom: 0;
}

.post-body code {
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 0.9em;
    padding: 0.2em 0.5em;
    background: rgba(30, 58, 95, 0.08);
    border-radius: 4px;
    color: var(--navy);
}

.post-body pre {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--navy-dark);
    border-radius: 12px;
    overflow-x: auto;
}

.post-body pre code {
    padding: 0;
    background: none;
    color: #e2e8f0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.post-body a {
    color: var(--orange);
    text-decoration: underline;
}

.post-body a:hover {
    color: var(--orange-light);
}

/* Post Footer */
.post-footer {
    padding: 2rem;
    background: var(--cream);
}

.post-tags {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.post-tags strong {
    color: var(--navy);
    margin-right: 0.5rem;
}

.tag {
    display: inline-block;
    margin: 0.25rem;
    padding: 0.35rem 0.75rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.tag:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: white;
    text-decoration: none;
}

/* Post CTA */
.post-cta {
    margin: 2rem 0;
    padding: 2.5rem;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    border-radius: 16px;
    text-align: center;
    color: white;
}

.post-cta h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: white;
}

.post-cta p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.post-cta .btn-primary {
    background: var(--orange);
    color: white;
}

.post-cta .btn-primary:hover {
    background: var(--orange-light);
}

/* Post Navigation */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.post-nav-link {
    display: block;
    padding: 1.25rem;
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
}

.post-nav-link:hover {
    border-color: var(--orange);
    text-decoration: none;
}

.nav-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.35rem;
}

.nav-title {
    display: block;
    color: var(--navy);
    font-weight: 600;
    font-size: 0.95rem;
}

.post-nav-next {
    text-align: right;
}

/* ============================================
   Footer (matches main site)
   ============================================ */
footer.ws-footer {
    background: var(--navy-dark);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-logo {
    font-family: 'Nunito', 'DM Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.footer-logo img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
    text-decoration: none;
}

.footer-copy {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   Responsive Styles
   ============================================ */
@media (max-width: 768px) {
    .nav-links .nav-link,
    .nav-cta {
        display: none;
    }

    .nav-links .nav-cta-orange {
        display: inline-block;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .blog-hero {
        padding: 7rem 1.5rem 3rem;
    }

    .blog-hero .section-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .post-title {
        font-size: 1.75rem;
    }

    .post-lead {
        font-size: 1.1rem;
    }

    .post-body h2 {
        font-size: 1.5rem;
    }

    .post-nav {
        grid-template-columns: 1fr;
    }

    .post-nav-next {
        text-align: left;
    }

    .cta-benefits {
        flex-direction: column;
        gap: 0.75rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .section-container {
        padding: 0 1rem;
    }

    .blog-list,
    .blog-cta {
        padding: 2rem 1rem;
    }

    .cta-box {
        padding: 2rem 1.5rem;
    }

    .post-cta {
        padding: 1.5rem;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    nav.ws-nav,
    footer.ws-footer,
    .blog-cta,
    .post-cta,
    .post-nav {
        display: none;
    }

    .post-single {
        padding-top: 0;
    }

    .post-header {
        background: none;
        color: var(--navy);
    }

    .post-title,
    .post-header .category {
        color: var(--navy);
    }
}
