/**
 * RevPost.no CSS Styling
 * Versjon: 1.0.1
 */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.7;
    color: #1a1a1a;
    background-color: #f8f8f8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* Header */
.site-header {
    background-color: #1a2634;
    color: #fff;
    padding: 40px 0;
    text-align: center;
    border-bottom: 4px solid #c41e3a;
}

.site-title {
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.site-title a {
    color: #fff;
    text-decoration: none;
}

.site-title a:hover {
    color: #e8e8e8;
}

.site-description {
    font-size: 1rem;
    color: #a0aab4;
    font-style: italic;
}

/* Main content */
main {
    flex: 1;
    padding: 40px 0;
}

/* Posts list */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.post-preview {
    background: #fff;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    border-left: 4px solid #c41e3a;
}

.post-preview:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.post-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.post-title a {
    color: #1a2634;
    text-decoration: none;
}

.post-title a:hover {
    color: #c41e3a;
}

.post-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.post-teaser {
    font-size: 1.05rem;
    color: #444;
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    color: #c41e3a;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
}

.read-more:hover {
    text-decoration: underline;
}

/* Single post */
.post-full {
    background: #fff;
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.post-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.post-full .post-title {
    font-size: 2rem;
    margin-bottom: 15px;
}

.post-teaser-full {
    font-size: 1.15rem;
    color: #333;
    margin-bottom: 30px;
    padding: 20px;
    background: #f5f5f5;
    border-left: 4px solid #c41e3a;
}

.post-body {
    font-size: 1.05rem;
}

.post-body p {
    margin-bottom: 1.5em;
}

.post-body h2 {
    font-size: 1.5rem;
    margin: 2em 0 1em;
    color: #1a2634;
}

.post-body h3 {
    font-size: 1.25rem;
    margin: 1.5em 0 0.75em;
    color: #1a2634;
}

.post-body blockquote {
    margin: 1.5em 0;
    padding: 20px 25px;
    background: #f9f9f9;
    border-left: 4px solid #c41e3a;
    font-style: italic;
    color: #444;
}

.post-body ul, .post-body ol {
    margin: 1em 0 1.5em 1.5em;
}

.post-body li {
    margin-bottom: 0.5em;
}

.post-body a {
    color: #c41e3a;
}

/* Sources */
.post-sources {
    margin-top: 40px;
    padding: 25px;
    background: #f5f7f9;
    border-radius: 4px;
}

.post-sources h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #1a2634;
}

.post-sources ul {
    list-style: none;
}

.post-sources li {
    margin-bottom: 8px;
}

.post-sources a {
    color: #3366cc;
    text-decoration: none;
    font-size: 0.95rem;
}

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

/* Tags */
.post-tags {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-block;
    padding: 5px 12px;
    background: #e8e8e8;
    color: #555;
    font-size: 0.85rem;
    border-radius: 3px;
}

/* Navigation */
.post-nav {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.back-link {
    color: #c41e3a;
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
}

/* Pagination */
.pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.pagination a {
    color: #c41e3a;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border: 2px solid #c41e3a;
    border-radius: 4px;
}

.pagination a:hover {
    background: #c41e3a;
    color: #fff;
}

.page-info {
    color: #666;
    font-size: 0.95rem;
}

/* No posts */
.no-posts {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 4px;
}

.no-posts h2 {
    margin-bottom: 10px;
    color: #333;
}

.no-posts p {
    color: #666;
}

/* Footer */
.site-footer {
    background: #1a2634;
    color: #a0aab4;
    padding: 25px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 600px) {
    .site-header {
        padding: 30px 0;
    }

    .site-title {
        font-size: 1.7rem;
    }

    .post-full {
        padding: 25px 20px;
    }

    .post-full .post-title {
        font-size: 1.5rem;
    }

    .post-preview {
        padding: 20px;
    }

    .pagination {
        flex-direction: column;
        gap: 15px;
    }
}
