/* ========================================
   1crew3 Blog - Matching React App Style
   ======================================== */

/* CSS Variables - 1crew3 Brand Colors */
:root {
    --color-primary: #00b4d8;
    --color-primary-dark: #0096b4;
    --color-gold: #d4a853;
    --color-navy-900: #0d1b2a;
    --color-navy-800: #1b2838;
    --color-navy-700: #2a3f54;
    --color-navy-600: #3d5a73;
    --color-navy-500: #5a7a94;
    --color-navy-400: #8ba3b8;
    --color-navy-300: #b3c5d4;
    --color-navy-100: #e8eef3;
    --color-text: #0d1b2a;
    --color-text-light: #5a7a94;
    --color-background: #ffffff;
    --color-background-alt: #e8eef3;
    --color-border: #d1dce6;
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --max-width: 1280px;
    --header-height: 56px;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-background);
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 640px) {
    .container {
        padding: 0 24px;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 32px;
    }
}

/* Buttons - 1crew3 Style */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--color-primary-dark);
    text-decoration: none;
}

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

.btn-secondary:hover {
    background: var(--color-primary);
    color: white;
    text-decoration: none;
}

.btn-gold {
    background: var(--color-gold);
    color: var(--color-navy-900);
}

.btn-gold:hover {
    background: #c49943;
    text-decoration: none;
}

/* Header - 1crew3 Dark Navy Style */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--color-navy-900);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    z-index: 50;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 640px) {
    .nav-container {
        padding: 0 24px;
    }
}

@media (min-width: 1024px) {
    .nav-container {
        padding: 0 32px;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: white;
    letter-spacing: -0.025em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.3s ease;
}

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

.nav-cta .btn {
    padding: 6px 16px;
    font-size: 14px;
    background: var(--color-gold);
    color: var(--color-navy-900);
}

.nav-cta .btn:hover {
    background: #c49943;
}

.mobile-menu-toggle {
    display: none;
}

/* Blog Hero */
.blog-hero {
    padding: 128px 0 48px;
    background: var(--color-background);
    text-align: center;
}

.blog-hero h1 {
    font-size: 40px;
    font-weight: 700;
    color: var(--color-navy-900);
    letter-spacing: -0.025em;
    margin-bottom: 12px;
}

.blog-hero-subtitle {
    color: var(--color-navy-500);
    font-size: 18px;
    font-weight: 300;
}

/* Featured Marina Section */
.featured-marina {
    padding: 64px 0;
    background: var(--color-navy-100);
}

.featured-marina-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.featured-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.featured-marina h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-navy-900);
    letter-spacing: -0.025em;
    margin-bottom: 16px;
    text-align: center;
}

.featured-marina p {
    font-size: 18px;
    color: var(--color-navy-500);
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 24px;
}

/* Greenies Section */
.greenies-section {
    padding: 96px 0;
    background: var(--color-background);
}

.greenies-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

@media (min-width: 1024px) {
    .greenies-grid {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }
}

.greenies-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-navy-900);
    letter-spacing: -0.025em;
    margin-bottom: 24px;
    text-align: left;
}

.greenies-content p {
    font-size: 18px;
    color: var(--color-navy-500);
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 16px;
}

.greenies-content ul {
    list-style: none;
    margin: 24px 0;
}

.greenies-content li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    color: var(--color-navy-600);
}

.greenies-content li::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    font-size: 12px;
    margin-right: 12px;
    flex-shrink: 0;
    margin-top: 2px;
}

.greenies-content li strong {
    display: block;
    color: var(--color-navy-900);
    font-weight: 600;
    margin-bottom: 4px;
}

.greenies-content strong {
    color: var(--color-navy-700);
}

/* Featured Article Card */
.featured-article {
    background: var(--color-navy-100);
    border-radius: 16px;
    padding: 24px;
}

.featured-article-card {
    display: block;
    margin-top: 12px;
    text-decoration: none;
}

.featured-article-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-navy-900);
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.featured-article-card:hover h3 {
    color: var(--color-primary);
}

.featured-article-card p {
    font-size: 16px;
    color: var(--color-navy-500);
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 16px;
}

.read-more {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-primary);
}

/* Blog Content Section */
.blog-content {
    padding: 96px 0;
    background: var(--color-background);
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-navy-900);
    letter-spacing: -0.025em;
    margin-bottom: 8px;
    text-align: left;
}

.section-intro {
    font-size: 16px;
    color: var(--color-navy-500);
    font-weight: 300;
    margin-bottom: 32px;
}

/* Blog Links List */
.blog-links-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
}

.blog-link-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--color-background);
    text-decoration: none;
    border-bottom: 1px solid var(--color-border);
    transition: background-color 0.2s ease;
}

.blog-link-item:last-child {
    border-bottom: none;
}

.blog-link-item:hover {
    background: var(--color-navy-100);
}

.blog-link-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-navy-900);
    flex: 1;
    padding-right: 16px;
}

.blog-link-item:hover .blog-link-title {
    color: var(--color-primary);
}

.blog-link-meta {
    font-size: 13px;
    color: var(--color-navy-400);
    white-space: nowrap;
}

/* Blog Post Page */
.blog-post .post-header {
    padding: 96px 0 24px;
    background: var(--color-background);
}

.breadcrumb {
    font-size: 14px;
    margin-bottom: 24px;
    color: var(--color-navy-400);
}

.breadcrumb a {
    color: var(--color-navy-500);
}

.breadcrumb a:hover {
    color: var(--color-primary);
}

.post-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.post-header h1 {
    font-size: 40px;
    font-weight: 700;
    color: var(--color-navy-900);
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin-bottom: 16px;
}

.post-meta {
    display: flex;
    gap: 24px;
    color: var(--color-navy-500);
    font-size: 14px;
}

.post-content {
    padding: 32px 0 64px;
}

.post-content .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

@media (min-width: 1024px) {
    .post-content .container {
        grid-template-columns: 2fr 1fr;
        gap: 64px;
    }
}

.post-body {
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-navy-700);
}

.post-body h2, .post-body h3 {
    color: var(--color-navy-900);
    margin-top: 32px;
    margin-bottom: 16px;
}

.post-excerpt {
    font-size: 20px;
    color: var(--color-navy-500);
    margin-bottom: 32px;
    font-weight: 300;
    line-height: 1.7;
}

.post-cta {
    background: var(--color-navy-100);
    padding: 32px;
    border-radius: 16px;
    margin-top: 48px;
}

.post-cta h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-navy-900);
    margin-bottom: 8px;
}

.post-cta p {
    color: var(--color-navy-500);
    margin-bottom: 16px;
}

.sidebar-card {
    background: var(--color-navy-100);
    padding: 24px;
    border-radius: 16px;
}

.sidebar-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-navy-900);
    margin-bottom: 16px;
}

.related-posts {
    list-style: none;
}

.related-posts li {
    margin-bottom: 12px;
}

.related-posts a {
    color: var(--color-navy-600);
    font-size: 14px;
}

.related-posts a:hover {
    color: var(--color-primary);
}

/* Footer - 1crew3 Style */
.site-footer {
    background: var(--color-navy-100);
    padding: 40px 0 24px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.footer-main {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

@media (min-width: 768px) {
    .footer-main {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.footer-brand-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-navy-700);
    letter-spacing: -0.025em;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    font-size: 14px;
    color: var(--color-navy-500);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-navy-900);
}

.footer-bottom {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(0,0,0,0.06);
    text-align: center;
    font-size: 12px;
    color: var(--color-navy-400);
}

/* Error Page */
.error-page {
    padding: 200px 0 100px;
    text-align: center;
}

.error-page h1 {
    font-size: 120px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.error-page p {
    font-size: 20px;
    color: var(--color-navy-500);
    margin-bottom: 32px;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 32px;
    }

    .featured-marina h2,
    .greenies-content h2 {
        font-size: 28px;
    }

    .post-header h1 {
        font-size: 32px;
    }

    .nav-links {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: white;
        margin: 5px 0;
    }
}
