/**
 * Rocket Booster Main CSS
 * Used when RocketWeaver is not active (Blog Mode)
 * Beautiful minimal blog theme styles
 */

:root {
    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --primary-light: #818cf8;
    --text: #1a202c;
    --text-light: #718096;
    --bg: #ffffff;
    --bg-gray: #f7fafc;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 0.5rem;
    --container-width: 1200px;
    --content-width: 720px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans JP', 'Yu Gothic', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.1rem; }

p {
    margin-bottom: 1.5rem;
}

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

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

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

/* Header */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 1.5rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    flex-shrink: 0;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
}

.site-title a {
    color: var(--text);
}

.site-description {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0.25rem 0 0;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.primary-menu-container ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}

.primary-menu-container a {
    color: var(--text);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

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

.primary-menu-container .current-menu-item a {
    color: var(--primary);
}

/* Main Content */
.site-content {
    min-height: calc(100vh - 200px);
    padding: 3rem 0;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Post Card */
.post-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.post-card-thumbnail img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

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

.post-card .entry-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.post-card .entry-title a {
    color: var(--text);
}

.post-card .entry-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.post-card .entry-summary {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.post-card .read-more {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Single Post */
.single-post-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    max-width: var(--container-width);
}

.single-post {
    max-width: var(--content-width);
}

.single-post .entry-header {
    margin-bottom: 2rem;
}

.single-post .entry-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.single-post .entry-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.single-post .post-thumbnail {
    margin-bottom: 2rem;
}

.single-post .post-thumbnail img {
    width: 100%;
    border-radius: var(--radius);
}

.single-post .entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.single-post .entry-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.single-post .entry-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.single-post .entry-content ul,
.single-post .entry-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.single-post .entry-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-light);
}

/* Sidebar */
.widget-area {
    background: var(--bg-gray);
    padding: 1.5rem;
    border-radius: var(--radius);
}

.widget {
    margin-bottom: 2rem;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.widget li:last-child {
    border-bottom: none;
}

/* Footer */
.site-footer {
    background: var(--text);
    color: #ffffff;
    margin-top: 3rem;
}

.footer-widgets {
    padding: 3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widget-area {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-widget h3 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-widget a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-widget a:hover {
    color: #ffffff;
}

.site-info {
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.site-info a {
    color: rgba(255, 255, 255, 0.8);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    transition: all 0.2s ease;
}

.pagination .page-numbers:hover,
.pagination .current {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
    }

    .primary-menu-container {
        display: none;
        width: 100%;
        margin-top: 1rem;
    }

    .primary-menu-container.is-open {
        display: block;
    }

    .primary-menu-container ul {
        flex-direction: column;
        gap: 0;
    }

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

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

    .widget-area {
        margin-top: 3rem;
    }
}

/* WordPress Core Styles */
.alignleft {
    float: left;
    margin-right: 1.5rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    overflow: hidden;
    height: 1px;
    width: 1px;
}