/* --- Global Styles & Resets --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: url(https://images.steamusercontent.com/ugc/2556437614743288119/7C5BE7B4A8165DAF1D69FB7C921BCF4EFB7BE58F/?imw=512&&ima=fit&impolicy=Letterbox&imcolor=%23000000&letterbox=false); /* Arcade carpet */
    background-repeat: no-repeat;
    background-size: cover;
    font-family: 'Courier Prime', monospace; /* Classic typewriter print style */
    line-height: 1.5;
    padding: 20px;
}

/* --- Container styling like a paper page --- */
.magazine-container {
    max-width: 900px;
    margin: 0 auto;
    background: #fffdf9;
    padding: 40px;
    border: 4px solid #1a1a1a;
    box-shadow: 12px 12px 0 #ff007f; /* Hot pink pop-art shadow */
}

/* --- Header Section --- */
.mag-header {
    text-align: center;
    border-bottom: 8px double #1a1a1a;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.issue-info {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    letter-spacing: 3px;
    color: #00f0ff; /* Bright Synth Cyan */
    text-shadow: 2px 2px #1a1a1a;
}

.mag-title {
    font-family: 'Bungee', sans-serif; /* Blocky arcade title font */
    font-size: 5rem;
    color: #ff007f; /* Hot Pink */
    text-shadow: 4px 4px 0 #00f0ff, 7px 7px 0 #1a1a1a;
    line-height: 1;
    margin: 15px 0;
    transform: rotate(-2deg); /* Slightly skewed retro zine style */
}

.price-tag {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    font-size: 0.9rem;
}

/* --- Content Grid Layout --- */
.mag-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 30px;
}

/* Full-width hero element inside the grid */
.hero-article {
    grid-column: 1 / span 2; 
    margin-bottom: 20px;
}

.accent-bar {
    height: 15px;
    background: linear-gradient(90deg, #ff007f 0%, #00f0ff 50%, #ffff00 100%); /* Neon gradient bar */
    margin-bottom: 15px;
}

.hero-article h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2.2rem;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 15px;
}

.lead-text {
    font-size: 1.2rem;
    font-weight: bold;
    border-left: 5px solid #ff007f;
    padding-left: 15px;
}

/* --- Columns & Sidebars --- */
.col h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    background-color: #1a1a1a;
    color: #ffff00; /* Neon Yellow text on black block */
    padding: 5px 10px;
    margin-bottom: 15px;
    display: inline-block;
}

/* Funky 80s Memphian style Sidebar Box */
.sidebar-box {
    background-color: #e6f9ff;
    border: 3px dashed #ff007f;
    padding: 20px;
    position: relative;
}

.sidebar-box ul {
    list-style: none;
    font-weight: bold;
}

.sidebar-box li {
    margin-bottom: 8px;
}

/* Geometric accent block popular in 80s graphic design */
.geo-shape {
    width: 40px;
    height: 40px;
    background-color: #ffff00;
    position: absolute;
    bottom: -10px;
    right: -10px;
    border: 3px solid #1a1a1a;
    z-index: 1;
}

/* --- Footer --- */
.mag-footer {
    margin-top: 40px;
    border-top: 4px solid #1a1a1a;
    padding-top: 15px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    font-size: 0.8rem;
}

/* Responsive design for mobile screens */
@media (max-width: 600px) {
    .mag-grid {
        grid-template-columns: 1fr;
    }
    .hero-article {
        grid-column: 1;
    }
    .mag-title {
        font-size: 3rem;
    }
}
/* --- Navigation Bar Layout --- */
.mag-nav {
    margin-top: 15px;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    font-size: 0.9rem;
    color: #1a1a1a;
}

.nav-label {
    background-color: #ff007f;
    color: white;
    padding: 2px 6px;
    margin-right: 5px;
}

.nav-link {
    color: #1a1a1a;
    text-decoration: none;
    padding: 2px 5px;
    transition: all 0.2s;
}

.nav-link:hover, .nav-link.active {
    background-color: #ffff00; /* Neon yellow highlight block on hover */
    color: #1a1a1a;
    text-decoration: underline;
}

/* --- Post Feeds & Buttons --- */
.post-preview {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px dotted #1a1a1a;
}

.post-preview h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #ff007f;
    margin-bottom: 5px;
}

.post-preview a {
    color: #00f0ff;
    font-weight: bold;
    background: #1a1a1a;
    padding: 0 4px;
    text-decoration: none;
}

.read-more-btn {
    display: inline-block;
    margin-top: 15px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 10px 15px;
    text-decoration: none;
    box-shadow: 5px 5px 0 #00f0ff;
}

.read-more-btn:hover {
    background-color: #ff007f;
    box-shadow: 5px 5px 0 #ffff00;
}

/* --- Dedicated Single Article View Styles --- */
.single-article-layout {
    max-width: 700px;
    margin: 0 auto;
}

.article-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 10px;
}

.article-meta {
    font-size: 0.85rem;
    font-weight: bold;
    color: #ff007f;
    margin-bottom: 20px;
}

.article-body p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: justify;
}

.article-subtitle p {
    font-size: 0.3rem;
    margin-bottom: 10px;
    text-align: center;
}

.back-link {
    display: inline-block;
    margin-top: 30px;
    color: #1a1a1a;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 3px solid #ff007f;
}
.back-link:hover {
    background-color: #ffff00;
}
/* --- Archive Page Layout Styles --- */
.archive-layout {
    max-width: 800px;
    margin: 0 auto;
}

.section-heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    color: #1a1a1a;
    letter-spacing: -1px;
    margin-bottom: 5px;
}

.archive-intro {
    font-style: italic;
    color: #666;
    margin-bottom: 30px;
    border-bottom: 3px double #1a1a1a;
    padding-bottom: 10px;
}

/* Individual Post Feed Row */
.archive-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.archive-item {
    display: flex;
    align-items: flex-start;
    border-bottom: 2px dashed #1a1a1a;
    padding-bottom: 20px;
}

/* Date Indicator mimicking a print log block */
.archive-date {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    background-color: #1a1a1a;
    color: #00f0ff; /* Cyan date on black background */
    padding: 6px 10px;
    font-size: 0.9rem;
    min-width: 90px;
    text-align: center;
    margin-right: 25px;
    box-shadow: 4px 4px 0px #ff007f;
}

.archive-details {
    flex: 1;
}

/* The actual link to your unique post files */
.archive-title-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.3rem;
    color: #1a1a1a;
    text-decoration: none;
    line-height: 1.2;
    display: inline-block;
    margin-bottom: 5px;
}

.archive-title-link:hover {
    color: #ff007f;
    background-color: #ffff00; /* Vibrant print highlight block */
}

.archive-excerpt {
    font-size: 1rem;
    color: #333;
    margin-bottom: 10px;
}

/* --- 80s Geometric Tag Badges --- */
.badge-row {
    display: flex;
    gap: 8px;
}

.badge {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 900;
    padding: 2px 8px;
    border: 2px solid #1a1a1a;
}

/* Color codes mapping to categories */
.badge.fashion { background-color: #e6f9ff; color: #0080ff; }
.badge.feature { background-color: #ffe6f2; color: #ff007f; }
.badge.music { background-color: #fffde6; color: #b3b300; }
.badge.culture { background-color: #e6ffe6; color: #00b33c; }
.badge.cinema { background-color: #f2e6ff; color: #7f00ff; }

/* Mobile optimization formatting */
@media (max-width: 600px) {
    .archive-item {
        flex-direction: column;
        gap: 12px;
    }
    .archive-date {
        margin-right: 0;
        margin-bottom: 5px;
    }
}
/* --- Archive Filter Buttons --- */
.archive-filters {
    margin-bottom: 25px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 0.85rem;
    color: #ff007f;
}

.filter-btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 0.8rem;
    background-color: #ffffff;
    color: #1a1a1a;
    border: 2px solid #1a1a1a;
    padding: 4px 10px;
    cursor: pointer;
    box-shadow: 3px 3px 0px #1a1a1a;
    transition: all 0.1s ease;
}

.filter-btn:hover {
    background-color: #00f0ff;
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0px #1a1a1a;
}

.filter-btn.active {
    background-color: #ffff00;
    box-shadow: none;
    transform: translate(2px, 2px);
}
/* --- Cassette Audio Player --- */
.cassette-player {
    background-color: #1a1a1a;
    border: 4px solid #ff007f;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 6px 6px 0px #00f0ff;
    margin-top: 20px;
    color: #ffffff;
    text-align: center;
}

/* Tape Window Housing */
.tape-window {
    background-color: #333333;
    height: 50px;
    border-radius: 4px;
    border: 2px solid #ffff00;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 30px;
    margin-bottom: 10px;
}

/* Tape Reels */
.spindle {
    width: 24px;
    height: 24px;
    background: radial-gradient(circle, #1a1a1a 30%, #ffff00 40%, #1a1a1a 60%);
    border-radius: 50%;
    border: 2px dashed #ffffff;
}

/* Continuous Tape Spinning Animation Loop */
@keyframes spin {
    100% { transform: rotate(360deg); }
}

.spindle.spinning {
    animation: spin 2s linear infinite;
}

.tape-label {
    font-size: 0.75rem;
    font-weight: bold;
    color: #00f0ff;
    letter-spacing: 1px;
    margin-bottom: 12px;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Control Layout Buttons */
.player-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.tape-btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 0.75rem;
    padding: 6px 12px;
    border: none;
    cursor: pointer;
}

.play-btn { background-color: #00b33c; color: white; }
.play-btn:hover { background-color: #00ff55; }

.stop-btn { background-color: #b30000; color: white; }
.stop-btn:hover { background-color: #ff3333; }
