/* Roger Wilco Blog - Custom Styles */

/* Modern Font Import - Inter for body, Space Grotesk for headings */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@500;700&display=swap');

/* CSS Variables for easy customization */
:root {
    --color-primary: #6366f1;
    --color-primary-dark: #4f46e5;
    --color-accent: #06b6d4;
    --color-dark: #0f172a;
    --color-gray: #64748b;
    --color-light: #f8fafc;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

/* Base Typography */
body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--color-dark);
    background: var(--color-light);
}

h1, h2, h3, h4, h5, h6,
.site-title {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Navigation - Clean & Modern */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-dark);
    text-decoration: none;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--color-gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

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

/* Hero Banner */
.hero-banner {
    background: url('/images/hero.jpg') center center / cover no-repeat;
    padding: 5rem 2rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 50%, rgba(240, 147, 251, 0.3) 100%);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-banner h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.hero-banner .tagline {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* Main Content Area */
.main-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

/* Home Page - Hide redundant intro section when hero is present */
.home .intro {
    display: none;
}

/* Section Headers */
.recent-posts h2 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gray);
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
}

/* Post Cards */
.post-summary {
    background: white;
    border-radius: 12px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-summary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1), 0 8px 24px rgba(0,0,0,0.08);
}

.post-summary h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.post-summary h3 a {
    color: var(--color-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-summary h3 a:hover {
    color: var(--color-primary);
}

.post-summary time {
    font-size: 0.875rem;
    color: var(--color-gray);
    font-weight: 500;
}

.post-summary p {
    color: var(--color-gray);
    margin-top: 0.75rem;
    line-height: 1.6;
}

/* Single Post Styles */
article h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

article .post-meta {
    color: var(--color-gray);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

article img {
    border-radius: 8px;
    max-width: 100%;
    height: auto;
}

article a {
    color: var(--color-primary);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

article a:hover {
    color: var(--color-primary-dark);
}

/* Code blocks */
pre, code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.9em;
}

pre {
    background: var(--color-dark);
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
}

/* Footer */
.site-footer {
    background: var(--color-dark);
    color: rgba(255,255,255,0.7);
    padding: 3rem 2rem;
    text-align: center;
}

.site-footer a {
    color: var(--color-accent);
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-banner {
        padding: 3rem 1.5rem;
    }

    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1.5rem;
    }
}
