/* Prepper Précis - Clean, readable styling for security intelligence */

/* Import typewriter font */
@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:wght@400;700&display=swap');

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

/* Typewriter font for that intelligence report aesthetic */
body {
    font-family: 'Courier Prime', 'Courier New', Courier, monospace;
    line-height: 1.6;
    color: #000000;
    background-color: #fefdf8;
    font-size: 16px;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5em;
    color: #000000;
}

h1 { font-size: 2.5em; }
h2 { font-size: 2em; margin-top: 1.5em; }
h3 { font-size: 1.5em; margin-top: 1.2em; }
h4 { font-size: 1.25em; margin-top: 1em; }

p {
    margin-bottom: 1em;
}

/* Links */
a {
    color: #2980b9;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #1abc9c;
    text-decoration: underline;
}

a:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Header */
header {
    background: #fefdf8;
    color: #000000;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

header h1 a {
    color: #000000;
    font-size: 1.8em;
    font-weight: 700;
}

header p {
    margin: 0.5rem 0;
    opacity: 0.9;
}

/* Navigation */
nav {
    margin-top: 1rem;
    padding: 0.75rem 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

nav a {
    color: #2980b9;
    margin-right: 1.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-block;
}

nav a:hover {
    background-color: #2980b9;
    color: #ffffff;
    text-decoration: none;
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
    margin-bottom: 2rem;
}

.disclaimer {
    text-align: center;
    margin-top: 2rem;
    opacity: 0.7;
    font-size: 0.8rem;
:}

/* Home Page Specific */
.home-page .page-content > p:first-of-type {
    font-size: 1.15em;
    line-height: 1.7;
    color: #333;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e0e0e0;
}

.recent-reports {
    margin-top: 3rem;
}

.recent-reports h2 {
    color: #000;
    border-bottom: 3px solid #2980b9;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.btn-primary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #2980b9;
    color: #ffffff;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.btn-primary:hover {
    background-color: #1abc9c;
    text-decoration: none;
    color: #ffffff;
}

.view-all {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

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

.post-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ecf0f1;
}

.post-header h1 {
    margin-left: 0; /* Align with post content text */
    padding-left: 0;
    font-size: 1.8em; /* Smaller than default h1 */
}

.post-meta {
    color: #7f8c8d;
    font-size: 0.9em;
    margin-bottom: 1rem;
    padding-left: 0; /* Aligns with first "P" */
}

.affiliate-disclosure {
    background: #f7f6f0;
    border: 1px solid #e6e4db;
    border-radius: 4px;
    padding: 0.75rem;
    margin: 1rem 0 1rem 0; /* Aligns with first "P" */
    font-size: 0.85em;
    color: #333333;
}

.post-content {
    line-height: 1.8;
    padding-left: 0; /* Content aligns with first "P" */
}

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

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

.post-summary {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #ecf0f1;
}

.post-summary h2 {
    margin-bottom: 0.5rem;
}

.post-summary h2 a {
    color: #000000;
}

.read-more {
    font-weight: 600;
    color: #2980b9;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
    padding: 1rem 0;
    border-top: 1px solid #ecf0f1;
}

.pagination a {
    background: #3498db;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.pagination a:hover {
    background: #2980b9;
}

.page-info {
    color: #7f8c8d;
}

/* Search */
.search-container {
    margin: 2rem 0;
    max-width: 600px;
}

.search-input-group {
    display: flex;
    gap: 0.5rem;
}

#search-input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #bdc3c7;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

#search-input:focus {
    outline: none;
    border-color: #3498db;
}

#search-button {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

#search-button:hover {
    background: #2980b9;
}

.search-results {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #e6e4db;
    border-radius: 4px;
    background: #f7f6f0;
}

.search-result {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.search-result:last-child {
    border-bottom: none;
}

.search-stats {
    color: #7f8c8d;
    font-size: 0.9em;
    margin-top: 0.5rem;
}

/* Monetization Elements */
.ad-container {
    margin: 1.5rem 0;
    text-align: center;
}

.ad-placeholder {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 4px;
    padding: 2rem;
    color: #6c757d;
}

.ad-top {
    margin-bottom: 2rem;
}

.ad-inline {
    margin: 2rem 0;
}

.ad-footer {
    margin-top: 2rem;
}

/* Affiliate Links */
.affiliate-link {
    color: #e67e22;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-style: dotted;
}

.affiliate-link:hover {
    color: #d35400;
}

/* Donation Widget */
.donate-widget, .donate-sidebar {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
}

.donate-button {
    display: inline-block;
    background: #27ae60;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease;
    margin: 0.5rem;
}

.donate-button:hover {
    background: #229954;
    text-decoration: none;
}

.bmc-button { background: #ff813f; }
.bmc-button:hover { background: #e6732a; }

.patreon-button { background: #f96854; }
.patreon-button:hover { background: #e5503c; }

.kofi-button { background: #29abe0; }
.kofi-button:hover { background: #1f8fb8; }

.donate-note {
    margin-top: 1rem;
    color: #6c757d;
}

/* Footer */
footer {
    background: #fefdf8;
    color: #000000;
    padding: 2rem 0;
    margin-top: 3rem;
}

footer p {
    margin-bottom: 0.5rem;
}

footer a {
    color: #2980b9;
}

footer a:hover {
    color: #1abc9c;
}

/* Post Navigation */
.post-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-left: 0; /* Align with container edge */
    padding-top: 1rem;
    border-top: 1px solid #ecf0f1;
}

.nav-next, .nav-prev {
    flex: 1;
    padding: 0 1rem;
}

.nav-next {
    text-align: right;
}

.nav-label {
    display: block;
    font-size: 0.9em;
    color: #7f8c8d;
    margin-bottom: 0.25rem;
}

.nav-title {
    display: block;
    font-weight: 600;
    color: #000000;
}

/* Tags */
.post-tags {
    margin-top: 1rem;
    padding-left: 0; /* Align with container edge */
}

.tag {
    background: #f5f4ef;
    color: #000000;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.85em;
    text-decoration: none;
    margin-right: 0.5rem;
}

.tag:hover {
    background: #ebe9e1;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    h1 { font-size: 2em; }
    h2 { font-size: 1.5em; }
    
    nav a {
        display: block;
        margin: 0.25rem 0;
    }
    
    .post-header h1 {
        margin-left: 0; /* Ensure titles don't get cut off on mobile */
    }
    
    .pagination {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .post-nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-next {
        text-align: left;
    }
    
    .search-input-group {
        flex-direction: column;
    }
}

