@import url('https://fonts.googleapis.com/css2?family=Philosopher:wght@400;700&family=Unna:wght@400;700&display=swap');

/*
Theme: Wizard's Altar
- Heading Font: Philosopher
- Body Font: Unna
- Colors:
  - Dark Blue/Purple (Background): #1a1a2e
  - Off-white (Text): #e0e0e0
  - Purple Accent: #9d4edd
  - Gold Accent: #f0e68c
*/

/* General Body Styles */
body {
    font-family: 'Unna', serif;
    line-height: 1.8;
    margin: 0;
    padding: 0;
    background-color: #1a1a2e;
    color: #e0e0e0;
}

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

/* Header */
header {
    background: transparent;
    padding: 2.5rem 0;
    text-align: center;
    border-bottom: 1px solid #3a3a5e;
    margin-bottom: 30px;
}

header h1 {
    font-family: 'Philosopher', sans-serif;
    margin: 0;
    font-size: 3rem;
    font-weight: 700;
    color: #f0e68c;
}

.tagline {
    font-size: 1.2rem;
    color: #9d4edd;
    font-family: 'Philosopher', sans-serif;
}

/* Page Layout */
.page-wrapper {
    display: flex;
    gap: 40px;
}

.main-content {
    flex: 3;
}

.sidebar {
    flex: 1;
}

/* Blog Post & Excerpts */
.post-excerpt, .blog-post {
    background: #2a2a4e;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    border: 1px solid #3a3a5e;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.post-excerpt h2, .blog-post h2 {
    font-family: 'Philosopher', sans-serif;
    margin-top: 0;
    font-size: 2.2rem;
}

.post-excerpt h2 a, .blog-post h2 a {
    text-decoration: none;
    color: #f0e68c;
    transition: color 0.3s ease;
}

.post-excerpt h2 a:hover, .blog-post h2 a:hover {
    color: #fff;
}

.post-meta {
    font-size: 0.9rem;
    color: #9d4edd;
    margin-bottom: 15px;
    font-style: italic;
}

.read-more {
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
    color: #f0e68c;
    font-weight: bold;
    border: 1px solid #f0e68c;
    padding: 8px 16px;
    border-radius: 5px;
    background-color: transparent;
    transition: all 0.3s ease;
}

.read-more:hover {
    background-color: #f0e68c;
    color: #1a1a2e;
}

/* In-article links */
.blog-post a {
    color: #f0e68c;
    text-decoration: underline;
}

.blog-post a:hover {
    text-decoration: none;
}

/* Sidebar Widgets */
.widget {
    background: #2a2a4e;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #3a3a5e;
}

.widget h3 {
    font-family: 'Philosopher', sans-serif;
    margin-top: 0;
    border-bottom: 1px solid #3a3a5e;
    padding-bottom: 10px;
    margin-bottom: 15px;
    color: #f0e68c;
}

.cta-button {
    display: block;
    width: 100%;
    padding: 12px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Ensures padding doesn't break layout */
    font-family: 'Philosopher', sans-serif;
    font-weight: bold;
}

/* Secondary Button Style (Make an Offer) */
.cta-button.cta-secondary {
    background: transparent;
    color: #f0e68c;
    border: 2px solid #9d4edd;
}

.cta-button.cta-secondary:hover {
    background: #9d4edd;
    color: #fff;
    transform: translateY(-2px);
}

/* Primary Button Style (Affiliate Link) */
.cta-button.cta-primary {
    background: #9d4edd;
    color: #fff;
    border: 2px solid #f0e68c;
    box-shadow: 0 0 15px rgba(240, 230, 140, 0.5);
}

.cta-button.cta-primary:hover {
    background: #b36bff;
    box-shadow: 0 0 25px rgba(240, 230, 140, 0.8);
    transform: translateY(-2px) scale(1.02);
}

/* Ad Placeholder */
.ad-placeholder {
    background-color: rgba(0,0,0,0.2);
    border: 2px dashed #3a3a5e;
    padding: 40px 20px;
    text-align: center;
    color: #9d4edd;
    border-radius: 5px;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 30px;
    background: #111122;
    color: #e0e0e0;
    border-top: 1px solid #3a3a5e;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.pagination-button {
    background: #9d4edd;
    color: #fff;
    border: 1px solid #f0e68c;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-button:hover {
    background: #f0e68c;
    color: #1a1a2e;
}

.pagination-button.disabled {
    background: #3a3a5e;
    color: #aaa;
    cursor: not-allowed;
    border-color: #3a3a5e;
}

#page-indicator {
    font-family: 'Philosopher', sans-serif;
    font-weight: bold;
    color: #f0e68c;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .page-wrapper {
        flex-direction: column;
    }

    header h1 {
        font-size: 2.5rem;
    }

    .post-excerpt h2, .blog-post h2 {
        font-size: 1.8rem;
    }
}
