/* Y2K Resources Article Styles
   Created: June 25, 2025
   Author: SOS Design
   Description: Enhanced styles for the Y2K resources article with improved mobile responsiveness
*/

/* Base Article Enhancement */
.article-page[data-page-type="y2kArticle"] {
    --article-accent: #2073bf;
    --article-light-bg: #f7f9fc;
    --article-border: #e0e6ed;
}

/* Font declarations */
@font-face {
    font-family: 'Orbitron';
    src: url('/blog/2025/06-Junho/fonts/Orbitron-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Ranger';
    src: url('/blog/2025/06-Junho/fonts/spaceranger.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Ensure proper box-sizing throughout article */
.article-page[data-page-type="y2kArticle"] * {
    box-sizing: border-box;
}

/* Article container styles with proper desktop margins */
.article-page[data-page-type="y2kArticle"] .article-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    overflow-x: hidden;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

.article-page[data-page-type="y2kArticle"] .article-content {
    width: 100%;
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Common content styling */
.article-page[data-page-type="y2kArticle"] p,
.article-page[data-page-type="y2kArticle"] h1,
.article-page[data-page-type="y2kArticle"] h2,
.article-page[data-page-type="y2kArticle"] h3,
.article-page[data-page-type="y2kArticle"] h4,
.article-page[data-page-type="y2kArticle"] li,
.article-page[data-page-type="y2kArticle"] figcaption {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

/* Image gallery styling */
.article-page[data-page-type="y2kArticle"] .image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 30px 0;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
}

.article-page[data-page-type="y2kArticle"] .image-gallery figure {
    margin: 0;
    width: calc(50% - 10px);
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-page[data-page-type="y2kArticle"] .image-gallery figure:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.article-page[data-page-type="y2kArticle"] .image-gallery img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.article-page[data-page-type="y2kArticle"] .image-gallery figcaption {
    background-color: #f8f9fa;
    padding: 12px 10px;
    font-size: 0.9rem;
    color: #333;
    text-align: center;
    width: 100%;
}

/* Full width image styling */
.article-page[data-page-type="y2kArticle"] .full-width-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Font showcase styling */
.article-page[data-page-type="y2kArticle"] .font-showcase {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 30px 0;
    width: 100%;
}

.article-page[data-page-type="y2kArticle"] .font-example {
    flex: 1;
    min-width: 280px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.article-page[data-page-type="y2kArticle"] .font-preview {
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 15px 0;
    background-color: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #eee;
    word-break: break-word;
    overflow-wrap: break-word;
}

.article-page[data-page-type="y2kArticle"] .orbitron-font {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.5px;
}

.article-page[data-page-type="y2kArticle"] .spaceranger-font {
    font-family: 'Space Ranger', sans-serif;
    letter-spacing: 1px;
}

/* Download section styling */
.article-page[data-page-type="y2kArticle"] .download-section {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
    width: 100%;
}

.article-page[data-page-type="y2kArticle"] .download-item {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-page[data-page-type="y2kArticle"] .download-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.article-page[data-page-type="y2kArticle"] .download-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.article-page[data-page-type="y2kArticle"] .download-item h3 {
    margin: 10px 0;
    font-size: 1.2rem;
    color: #333;
    word-break: break-word;
}

.article-page[data-page-type="y2kArticle"] .download-item p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

.article-page[data-page-type="y2kArticle"] .download-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    max-width: 100%;
}

.article-page[data-page-type="y2kArticle"] .download-button:hover {
    background-color: #183153;
}

/* Design tips styling */
.article-page[data-page-type="y2kArticle"] .design-tip {
    background-color: #f8f9fa;
    padding: 20px;
    border-left: 4px solid var(--primary-color);
    margin: 20px 0;
    border-radius: 4px;
    box-sizing: border-box;
    width: 100%;
}

/* Table of contents styling */
.article-page[data-page-type="y2kArticle"] .table-of-contents {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-sizing: border-box;
    width: 100%;
}

/* Checklist items styling */
.article-page[data-page-type="y2kArticle"] .checklist-items {
    padding-left: 10px;
    list-style-type: none;
    width: 100%;
}

.article-page[data-page-type="y2kArticle"] .checklist-items li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 30px;
}

.article-page[data-page-type="y2kArticle"] .checklist-items li i {
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 3px;
}

/* License info styling */
.article-page[data-page-type="y2kArticle"] .license-info {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
    width: 100%;
    box-sizing: border-box;
}

/* Article sections styling */
.article-page[data-page-type="y2kArticle"] .article-section {
    margin-bottom: 40px;
    width: 100%;
    overflow: hidden;
}

/* Author and share sections */
.article-page[data-page-type="y2kArticle"] .article-author {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.article-page[data-page-type="y2kArticle"] .article-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .article-page[data-page-type="y2kArticle"] .article-container {
        width: 100%;
        padding: 1rem;
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .article-page[data-page-type="y2kArticle"] .article-content {
        padding: 1.5rem;
    }
    
    .article-page[data-page-type="y2kArticle"] .article-sidebar {
        padding: 1.5rem;
    }
    
    .article-page[data-page-type="y2kArticle"] .image-gallery figure {
        width: 100%;
        max-width: 100%;
    }
    
    .article-page[data-page-type="y2kArticle"] .font-showcase {
        flex-direction: column;
        gap: 15px;
    }
    
    .article-page[data-page-type="y2kArticle"] .font-example {
        min-width: unset;
        width: 100%;
        padding: 15px;
    }
    
    .article-page[data-page-type="y2kArticle"] .download-section {
        grid-template-columns: 1fr;
    }
    
    .article-page[data-page-type="y2kArticle"] .download-item {
        padding: 20px 15px;
        width: 100%;
    }
    
    .article-page[data-page-type="y2kArticle"] .download-button {
        width: 100%;
        box-sizing: border-box;
        padding: 12px 10px;
        text-align: center;
    }
    
    .article-page[data-page-type="y2kArticle"] .article-author {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .article-page[data-page-type="y2kArticle"] .article-share {
        justify-content: center;
    }
    
    .article-page[data-page-type="y2kArticle"] .design-tip,
    .article-page[data-page-type="y2kArticle"] .table-of-contents,
    .article-page[data-page-type="y2kArticle"] .license-info {
        padding: 15px;
        margin: 15px 0;
    }
    
    /* Fix for lists on mobile */
    .article-page[data-page-type="y2kArticle"] ul {
        padding-left: 20px;
    }
    
    .article-page[data-page-type="y2kArticle"] .checklist-items li {
        padding-left: 25px;
        text-indent: -25px;
    }
}

/* Even smaller screens */
@media (max-width: 480px) {
    .article-page[data-page-type="y2kArticle"] .article-content {
        padding: 1rem;
    }
    
    .article-page[data-page-type="y2kArticle"] .article-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .article-page[data-page-type="y2kArticle"] h2 {
        font-size: 1.4rem;
    }
    
    .article-page[data-page-type="y2kArticle"] h3 {
        font-size: 1.2rem;
    }
    
    .article-page[data-page-type="y2kArticle"] .font-preview {
        font-size: 1rem;
        padding: 10px;
    }
}

/* Ensure sidebar doesn't cause overflow */
@media (max-width: 992px) {
    .article-page[data-page-type="y2kArticle"] .article-sidebar {
        width: 100%;
        position: static;
    }
}
