/*
Theme Name: Macabre Magazine
Author: Dark Harbor Press
Description: A dark, gothic theme for Macabre Magazine
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Pirata+One&family=Spectral:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');

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

html, body {
    min-height: 100%;
    font-family: 'Spectral', serif;
}

body {
    display: flex;
    background-color: #f0f0f0;
    flex-direction: column;
    overflow-x: hidden; 
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Pirata One', serif;
    color: #131313;
}

p {
    font-family: 'Spectral', serif;
    color: #131313
}

/* -----Nav Styles----- */

nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    width: 100%;
    color: #fff;
    visibility: hidden;
    opacity: 0;
    mix-blend-mode: difference;
}

nav h1, nav a {
    color: #fff;
}

.logo h1 {
    font-family: "Pirata One", serif;
    font-size: 2rem;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-item, a {
    font-family: "Pirata One", serif;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.5rem;
    color: #131313;
}


/* -----Hero Styles----- */

.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem 0 2rem;
    background-image: linear-gradient(rgba(78, 78, 78, 0.4), rgba(0, 0, 0, 0.4)), url('hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    width: 100vw;
    background-color: #131313;
    visibility: hidden;
    opacity: 0;
    flex-shrink: 0; /* Prevent hero from shrinking */
}

.hero-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    text-align: right;
    margin: 0;
    padding: 0;
}

.hero-content h1, .hero-content h2 {
    color: #fff;
    z-index: 1;
}

.hero-content h1 {
    font-size: 13rem;
    padding: 0;
    margin: 0;
}

.hero-content h2 {
    font-size: 3rem;
    padding: 0;
    margin: 0;
    margin-right: 2rem;
    margin-bottom: 0px;
    text-align: right;
}

/* -----Content Section Styles----- */


.fiction, .nonfiction, .poetry, .multimedia {
    display: flex;
    flex-direction: column;
    background-color: #f0f0f0;
    align-items: center;
    min-height: 100vh;
    justify-content: flex-start;
}

.fiction-container, .nonfiction-container, .poetry-container, .multimedia-container {
    max-width: 100vw;
    width: 100%;
    color: #131313;
    display: flex;
    flex-direction: column;
    padding: 6rem 2rem 6rem 2rem;
}

.fiction-title, .nonfiction-title, .poetry-title, .multimedia-title {
    font-family: 'Pirata One', serif;
    font-size: 4rem;
    padding: 2rem 2rem 2rem 0;
    text-align: left;
}

/* -----Article Card Styles----- */

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
}

.article-card {
    background: #fff;
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    text-align: left; /* Reset text align */
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.card-category {
    font-family: 'Spectral', serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 1px;
    font-weight: 600;
}

.card-title {
    font-family: 'Pirata One', serif;
    font-size: 1.8rem;
    color: #131313;
    margin: 0.5rem 0;
    line-height: 1.1;
}

.card-excerpt {
    font-family: 'Spectral', serif;
    font-size: 1rem;
    color: #444;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.card-author {
    font-family: 'Spectral', serif;
    font-style: italic;
    color: #666;
    font-size: 0.9rem;
}

.read-more {
    font-family: 'Spectral', serif;
    text-decoration: none;
    color: #131313;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

/* -----CTA Section Styles----- */

.cta-section {
    background-color: #131313;
    color: #fff;
    padding: 6rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
}

.cta-container {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.cta-container h2 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.cta-container p {
    font-size: 1.2rem;
    color: #ccc;
    max-width: 600px;
}

.cta-button {
    margin-top: 1rem;
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #fff;
    color: #131313;
    text-decoration: none;
    font-family: 'Pirata One', serif;
    font-size: 1.5rem;
    border: 1px solid #fff;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: transparent;
    color: #fff;
}

/* -----Footer Styles----- */

.site-footer {
    background-color: #f0f0f0;
    color: #131313;
    padding: 2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #131313;
}

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

.footer-logo {
    font-family: 'Pirata One', serif;
    font-size: 2rem;
    color: #131313;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    padding: 0;
}

.footer-links a {
    font-family: 'Pirata One', serif;
    color: #131313;
    font-size: 1.2rem;
    text-decoration: none;
}

.copyright {
    font-family: 'Spectral', serif;
    font-size: 0.9rem;
    color: #131313;
}

/* -----Post Page Styles----- */

.post-container {
    padding: 8rem 2rem 4rem 2rem;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    background-color: #fff;
}

.post-content {
    max-width: 800px;
    width: 100%;
}

.post-header {
    text-align: center;
    margin-bottom: 3rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 2rem;
}

.post-category {
    font-family: 'Spectral', serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    color: #888;
    display: block;
    margin-bottom: 1rem;
}

.post-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.post-meta {
    font-family: 'Spectral', serif;
    font-style: italic;
    color: #555;
    font-size: 1.1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.post-body, .page-body {
    font-family: 'Spectral', serif;
    font-size: 1.25rem;
    line-height: 1.8;
    color: #222;
}

.post-body p, .page-body p {
    margin-bottom: 1.5rem;
}

.post-body p:first-of-type::first-letter {
    font-family: 'Pirata One', serif;
    font-size: 4.5rem;
    float: left;
    line-height: 0.8;
    padding-right: 0.5rem;
    padding-top: 0.5rem;
}

/* -----Media Queries----- */

@media screen and (max-width: 1024px) {
    .hero-content h1 {
        font-size: 8rem;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
        margin-right: 1rem;
    }

    .fiction-title, .nonfiction-title, .poetry-title, .multimedia-title {
        font-size: 3rem;
    }
}

@media screen and (max-width: 768px) {
    /* Mobile Nav */
    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-list {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-item, a {
        font-size: 1.2rem;
    }

    /* Mobile Hero */
    .hero {
        padding-top: 8rem; /* Make room for stacked nav */
    }

    .hero-content {
        align-items: center; /* Center align on mobile */
        text-align: center;
    }

    .hero-content h1 {
        font-size: 5rem;
        line-height: 1;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
        margin-right: 0;
        text-align: center;
    }

    /* Mobile Content */
    .fiction-container, .nonfiction-container, .poetry-container, .multimedia-container {
        padding: 4rem 1.5rem 4rem 1.5rem;
    }

    .fiction-title, .nonfiction-title, .poetry-title, .multimedia-title {
        font-size: 2.5rem;
        text-align: center; /* Center titles on mobile */
        padding: 0 0 2rem 0;
    }

    .articles-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 2rem;
    }

    .article-card {
        max-width: 100%;
    }

    /* Mobile CTA */
    .cta-container h2 {
        font-size: 2rem;
    }

    .cta-container p {
        font-size: 1rem;
    }

    /* Mobile Footer */
    .site-footer {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    /* Post Page Mobile */
    .post-title {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 480px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .logo h1 {
        font-size: 1.8rem;
    }
}