/* themes/custom/static/css/style.css */

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

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-bg: #ecf0f1;
    --white: #fff;
    --border-color: #bdc3c7;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.site-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1.5rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white);
    text-decoration: none;
}

.logo a:hover {
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--secondary-color);
}

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

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.hero h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tagline {
    font-size: 1.25rem;
    color: var(--secondary-color);
}

/* Posts List */
.posts-list h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 1rem;
}

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

/* Post Card */
.post-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.post-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

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

.post-content {
    padding: 1.5rem;
}

.post-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.post-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-card h3 a:hover {
    color: var(--secondary-color);
}

.post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.summary {
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.read-more {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--accent-color);
}

/* Single Post */
.post-single {
    max-width: 800px;
    margin: 0 auto;
}

.post-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--light-bg);
}

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

.featured-image {
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.post-content h2 {
    font-size: 1.8rem;
    margin: 1.5rem 0 0.75rem 0;
    color: var(--primary-color);
}

.post-content h3 {
    font-size: 1.4rem;
    margin: 1.25rem 0 0.5rem 0;
    color: var(--primary-color);
}

.post-content p {
    margin-bottom: 1rem;
}

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

.post-content a {
    color: var(--secondary-color);
    text-decoration: none;
}

.post-content a:hover {
    text-decoration: underline;
}

.post-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--light-bg);
}

.categories {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.categories a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--light-bg);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.categories a:hover {
    background: var(--secondary-color);
    color: var(--white);
}

.post-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    gap: 2rem;
}

.prev-post,
.next-post {
    flex: 1;
    padding: 1rem;
    background: var(--light-bg);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.prev-post:hover,
.next-post:hover {
    background: var(--secondary-color);
    color: var(--white);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.pagination a {
    padding: 0.75rem 1.5rem;
    background: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.pagination a:hover {
    background: var(--accent-color);
}

/* Footer */
.site-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
}

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

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