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

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #0a0a0a;
    color: #fff;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Link styles */
a {
    color: #e74c3c;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Loader Styles */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-text {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 15px;
    text-transform: uppercase;
    color: #fff;
    opacity: 0;
}

/* Landing Page Styles */
.landing-page {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0a0a0a;
}

.magazine-container {
    position: relative;
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.title-wrapper {
    position: relative;
    overflow: visible;
    height: 200px;
    margin-bottom: 80px;
}

.title {
    font-size: 12vw;
    font-weight: 900;
    line-height: 0.85;
    text-transform: uppercase;
    position: absolute;
    width: 100%;
    color: transparent;
    -webkit-text-stroke: 1px #fff;
    opacity: 0;
    transform: translateY(100%);
    margin: 0;
    padding: 0;
}

.title span {
    display: block;
    white-space: nowrap;
}

.landing-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.pre-order-btn {
    font-size: 1.2vw;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: transparent;
    color: #fff;
    border: 1px solid #e74c3c;
    padding: 18px 50px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    margin-top: 30px;
}

.pre-order-btn:hover {
    background: #e74c3c;
    color: #fff;
}

.read-online {
    font-size: 1.2vw;
    font-weight: 300;
    letter-spacing: 5px;
    text-transform: uppercase;
    opacity: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.read-online:hover {
    color: #e74c3c;
}

.issue-number {
    position: absolute;
    bottom: -20%;
    right: 0;
    font-size: 16vw;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

/* Article Header Styles */
.article-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.back-to-home {
    color: #e74c3c;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.back-to-home:hover {
    color: #fff;
}

.magazine-name {
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #e74c3c;
}

/* Standalone Article Specific Styles */
body.standalone-article {
    background-color: #0a0a0a;
    padding-top: 60px; /* Matches modal header height */
}

body.standalone-article .article-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    padding: 15px 40px;
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid #333;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.standalone-article .article-overlay {
    position: relative;
    background: transparent;
    margin-top: 0;
    padding-top: 0;
}

body.standalone-article .article-container {
    padding-top: 20px;
    margin-top: 0;
}

/* Ensure content starts at same position as modal */
body.standalone-article .article-title {
    margin-top: 0;
}
/* Improved article meta section */
.article-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto 30px;
    font-size: 16px;
    line-height: 1.5;
    max-width: 90%;
    color: #aaa;
    text-align: center;
}

.article-meta-main {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.writer-name {
    color: #e74c3c;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.3s ease;
}

.writer-name:hover {
    color: #fff;
}

/* Article actions - more subtle */
.article-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin-top: 15px;
}

.action-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #aaa;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.action-btn:hover {
    background: rgba(231, 76, 60, 0.2);
    color: #fff;
    border-color: #e74c3c;
}

/* Remove icon decorations from buttons */
.copy-link-btn::before,
.open-new-tab-btn::before {
    content: none;
}

/* Content Section Styles */
.content-section {
    padding: 100px 10% 50px;
    background-color: #0a0a0a;
    min-height: 100vh;
}

.filter-nav {
    position: fixed;
    top: -100px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 100;
    padding: 15px 0;
    background-color: #0a0a0a;
    border-bottom: 1px solid #333;
    transition: top 0.5s ease;
}

.filter-nav.visible {
    top: 0;
}

.filter-nav-container {
    display: flex;
    gap: 15px;
    padding: 0 20px;
    background-color: #0a0a0a;
    border-radius: 30px;
    border: 1px solid #333;
}

.filter-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
    background-color: #333;
    color: #fff;
}

.filter-btn.active {
    opacity: 1;
    transform: scale(1.05);
    background-color: #e74c3c;
}

.filter-btn[data-category="radio"] {
    background-color: #3498db;
}

.filter-btn[data-category="ramble"] {
    background-color: #2ecc71;
}

.filter-btn[data-category="release"] {
    background-color: #f39c12;
}

.filter-btn[data-category="review"] {
    background-color: #9b59b6;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 80px;
}

.content-card {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 5px;
    background-color: #111;
    border: 1px solid #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: white;
    transition: all 0.3s ease;
    z-index: 2;
}

.card-category {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 2;
}

.card-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.card-meta {
    font-size: 12px;
    opacity: 0.8;
    letter-spacing: 1px;
}

.content-card:hover .card-image {
    transform: scale(1.05);
}

.content-card:hover .card-overlay {
    padding-bottom: 30px;
}

/* Article Overlay Styles */
.article-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

.article-overlay.visible {
    display: block;
    opacity: 1;
}

.article-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 100px 0 60px;
    background-color: #111;
    border: 1px solid #333;
}

.close-article {
    position: fixed;
    top: 25px;
    right: 25px;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-article:hover {
    color: #e74c3c;
    background: rgba(255,255,255,0.1);
}

.article-title {
    font-size: 4vw;
    font-weight: 900;
    line-height: 0.9;
    margin: 0 auto 30px;
    color: transparent;
    -webkit-text-stroke: 1px #fff;
    text-align: center;
    max-width: 90%;
}

.article-title-line {
    display: block;
}

.article-featured-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    margin-bottom: 40px;
}

.article-content {
    line-height: 1.8;
    font-size: 18px;
    padding: 0 40px;
    max-width: 800px;
    margin: 0 auto;
}

.article-content p {
    margin-bottom: 1.5em;
}

.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 30px 0;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.article-content figure {
    margin: 30px 0;
    text-align: center;
}

.article-content figcaption {
    font-size: 14px;
    color: #aaa;
    font-style: italic;
    margin-top: 8px;
    line-height: 1.4;
    padding: 0 20px;
}

.read-next {
    margin-top: 60px;
    padding: 0 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.read-next h3 {
    font-size: 24px;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.read-next h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #e74c3c;
}

.read-next-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.read-next-card {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.read-next-card:hover {
    transform: translateY(-5px);
}

.read-next-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 3px;
    margin-bottom: 10px;
}

.read-next-card h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.read-next-card p {
    font-size: 12px;
    opacity: 0.7;
}

/* Modal Styles */
.pre-order-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.pre-order-modal.visible {
    opacity: 1;
    visibility: visible;
}

.pre-order-modal-content {
    position: relative;
    background-color: #111;
    padding: 40px;
    border-radius: 5px;
    max-width: 500px;
    width: 90%;
    border: 1px solid #e74c3c;
    text-align: center;
}

.pre-order-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pre-order-close-btn:hover {
    color: #e74c3c;
    transform: scale(1.2);
}

.pre-order-modal p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 0;
    color: #fff;
    text-align: left;
}

/* Standalone article specific styles */
body.standalone-article .article-header {
    position: fixed;
    background: #0a0a0a;
}

body.standalone-article .close-article {
    position: fixed;
}

body.standalone-article .writer-name {
    text-decoration: none;
    cursor: default;
}

body.standalone-article .writer-name:hover {
    color: #e74c3c;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .article-title {
        font-size: 5vw;
    }
    
    .read-next-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .title {
        font-size: 18vw;
    }
    
    .pre-order-btn {
        font-size: 16px;
        padding: 15px 40px;
    }
    
    .pre-order-modal-content {
        padding: 30px 20px;
    }
    
    .pre-order-modal p {
        font-size: 16px;
    }
    
    .read-online {
        font-size: 14px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-nav-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 10px;
    }
    
    .filter-btn {
        padding: 6px 15px;
        font-size: 10px;
    }
    
    .article-container {
        padding: 40px 0;
        margin: 60px auto;
    }
    
    .article-title {
        font-size: 10vw;
    }
    
    .article-content {
        padding: 0 20px;
        font-size: 16px;
        text-align: justify;
    }
    
    .article-meta {
        white-space: normal;
        flex-direction: column;
        gap: 4px;
    }
    
    .close-article {
        top: 20px;
        right: 20px;
        font-size: 30px;
    }
    
    .read-next-grid {
        grid-template-columns: 1fr;
    }
    
    .read-next-card img {
        height: 200px;
    }
    
    .article-content .align-left,
    .article-content .align-right {
        float: none;
        max-width: 100%;
        margin: 20px auto;
    }
    
    .article-content figure {
        margin: 20px 0;
    }
    
    .article-actions {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .action-btn {
        width: 100%;
        max-width: 220px;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .article-actions {
        flex-direction: column;
        gap: 10px;
    }
    
     .action-btn {
        font-size: 12px;
        min-width: 60px;
        padding: 4px 8px;
    }
    
    .article-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .magazine-brand {
        align-items: flex-start;
    }
}
