/* Main Styles - The Daily Prophet Theme */

/* Header */
.newspaper-header {
    text-align: center;
    border-bottom: 3px double var(--ink);
    padding-bottom: 15px;
    margin-bottom: 20px;
    position: relative;
}

.masthead-decoration {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    color: var(--ink-faded);
    margin-bottom: 10px;
    font-family: 'IM Fell English', serif;
}

.masthead-decoration span {
    flex: 1;
    text-align: center;
}

.site-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    line-height: 1;
    margin: 15px 0;
}

.site-tagline {
    font-family: 'IM Fell English', serif;
    font-style: italic;
    font-size: 1rem;
    color: var(--ink-faded);
    letter-spacing: 0.15em;
}

/* Navigation */
.newspaper-nav {
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
    padding: 10px 0;
    margin-bottom: 25px;
}

.nav-menu {
    display: flex;
    justify-content: center;
    gap: 30px;
    list-style: none;
    flex-wrap: wrap;
}

.nav-menu a {
    color: var(--ink);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    padding-bottom: 3px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Content Layout */
.newspaper-content {
    column-count: 2;
    column-gap: 40px;
    column-rule: 1px solid var(--ink-faded);
}

@media (max-width: 768px) {
    .newspaper-content {
        column-count: 1;
        column-rule: none;
    }
}

/* Article Styling */
.article {
    break-inside: avoid;
    margin-bottom: 30px;
}

.article-header {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.article-header a {
    color: var(--ink);
    text-decoration: none;
}

.article-header a:hover {
    color: var(--accent);
}

.article-meta {
    font-size: 0.8rem;
    color: var(--ink-faded);
    margin-bottom: 15px;
    font-style: italic;
}

.article-excerpt {
    text-align: justify;
    text-indent: 2em;
    margin-bottom: 15px;
}

.article-excerpt::first-letter {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    float: left;
    line-height: 1;
    padding-right: 8px;
    color: var(--accent);
}

.read-more {
    color: var(--ink);
    text-decoration: none;
    font-style: italic;
    border-bottom: 1px solid var(--ink-faded);
}

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

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 3px double var(--ink);
}

.page-number,
.prev,
.next {
    padding: 8px 16px;
    border: 1px solid var(--ink-faded);
    text-decoration: none;
    color: var(--ink);
    transition: all 0.3s;
}

.page-number:hover,
.page-number.current {
    background: var(--ink);
    color: var(--paper);
}

/* Footer */
.newspaper-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 3px double var(--ink);
    text-align: center;
    font-size: 0.8rem;
    color: var(--ink-faded);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--ink);
    text-decoration: none;
}

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

/* Blockquote */
blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: var(--ink-faded);
}

/* Code Blocks */
pre {
    background: var(--paper-dark);
    padding: 15px;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

code {
    background: var(--paper-dark);
    padding: 2px 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
}

.article img {
    display: block;
    margin: 20px auto;
    border: 2px solid var(--ink);
    padding: 5px;
    background: var(--paper);
}

/* Tags */
.tags {
    margin-top: 20px;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid var(--ink-faded);
    font-size: 0.75rem;
    margin-right: 8px;
    margin-bottom: 8px;
    text-decoration: none;
    color: var(--ink);
    transition: all 0.3s;
}

.tag:hover {
    background: var(--ink);
    color: var(--paper);
}
