/* CSS Variables */
:root {
    --bg-dark: #000000;
    --text-light: #ffffff;
    --bg-light: #ffffff;
    --text-dark: #000000;
    --text-gray: #666666;
    --border-color: #000000;
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-display: 'Impact', 'Arial Black', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
    object-fit: cover;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header Styles */
.main-header {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 0 0 30px 0;
    position: relative;
}

.top-bar {
    display: flex;
    justify-content: flex-end;
    padding: 0;
}

.search-container {
    display: flex;
    background-color: var(--bg-light);
    width: 250px;
}

.search-container input {
    border: none;
    padding: 12px 15px;
    width: 100%;
    outline: none;
    font-family: var(--font-main);
}

.search-btn {
    background-color: #1a1a1a;
    border: none;
    padding: 0 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn img {
    width: 16px;
    height: 16px;
    filter: invert(1);
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.logo-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -1px;
    font-family: var(--font-display);
}

.main-title {
    text-align: center;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 20px 10px 40px 10px;
    line-height: 1.1;
}

.main-nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    gap: 20px;
}

.main-nav a {
    font-size: 0.9rem;
    transition: opacity 0.3s;
}

.main-nav a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* Main Content Styles */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.section-block {
    margin-bottom: 60px;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    border-bottom: 3px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.uppercase {
    text-transform: uppercase;
}

/* Cards & Grids */
.grid-recent {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.grid-trending {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.card-large img {
    aspect-ratio: 16/9;
    width: 100%;
    margin-bottom: 15px;
}

.card-small img {
    aspect-ratio: 16/9;
    width: 100%;
    margin-bottom: 10px;
}

.card-meta {
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-bottom: 5px;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 5px;
}

.card-large .card-title {
    font-size: 1.5rem;
}

.card-author {
    font-size: 0.8rem;
    color: var(--text-gray);
}

/* Categories / Recommend Box */
.categories-section {
    text-align: center;
    margin-top: 80px;
}

.huge-text {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 40px;
    text-align: left;
}

.recommended-box {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.recommended-title {
    font-weight: bold;
    font-size: 1.2rem;
}

.recommended-box img {
    max-width: 200px;
    height: auto;
}

/* Welcome Section */
.welcome-section {
    background-color: #f9f9f9;
    padding: 60px 20px;
    margin: 40px -20px -40px -20px;
    text-align: center;
    border-top: 1px solid #eaeaea;
}

.welcome-content {
    max-width: 800px;
    margin: 0 auto;
}

.welcome-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.welcome-content p {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.8;
}

/* Footer Styles */
.main-footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 60px 20px 30px 20px;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-description {
    font-size: 1rem;
    line-height: 1.6;
}

.disclaimer {
    font-size: 0.75rem;
    color: #999;
    line-height: 1.5;
    padding: 15px;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

.disclaimer strong {
    color: #fff;
}

.copyright {
    font-size: 0.8rem;
    color: #666;
}

/* Cookie Modal (Right positioned) */
.cookie-modal {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 320px;
    background-color: var(--bg-light);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    box-shadow: 8px 8px 0px rgba(0,0,0,0.1);
    padding: 25px;
    z-index: 9999;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-modal.show {
    transform: translateX(0);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.close-btn img {
    width: 14px;
    height: 14px;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.close-btn:hover img {
    opacity: 1;
}

.cookie-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-icon {
    width: 24px;
    height: 24px;
}

.cookie-modal h4 {
    font-size: 1.1rem;
    font-weight: 800;
}

.cookie-modal p {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.4;
}

.cookie-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 5px;
}

.btn-accept {
    background-color: var(--bg-dark);
    color: var(--text-light);
    border: none;
    padding: 10px 20px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
}

.btn-accept:hover {
    background-color: #333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .top-bar {
        justify-content: center;
        border-bottom: 1px solid #333;
    }
    
    .search-container {
        width: 100%;
    }
    
    .grid-trending {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cookie-modal {
        width: calc(100% - 40px);
        right: 20px;
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .grid-recent,
    .grid-trending {
        grid-template-columns: 1fr;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}
/* Inner page styles */
/* =========================================
   INTERNAL PAGE STYLES (Article, Forms, Tags)
   ========================================= */

/* Article Header */
.single-article {
    max-width: 900px;
    margin: 0 auto 50px auto;
}

.article-meta {
    font-size: 0.85rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    font-weight: bold;
}

.article-h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.article-author-info {
    font-size: 0.9rem;
    color: var(--text-gray);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.article-author-info strong {
    color: var(--text-dark);
}

/* Article Images */
.article-hero {
    margin-bottom: 40px;
}

.article-hero img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.article-hero figcaption {
    font-size: 0.8rem;
    color: var(--text-gray);
    text-align: right;
    margin-top: 8px;
    font-style: italic;
}

.inline-image {
    width: 100%;
    height: auto;
    margin: 30px 0;
    border-radius: 4px;
    border: 1px solid #eaeaea;
}

/* Table of Contents (TOC) */
.article-toc {
    background-color: #f9f9f9;
    border: 2px solid var(--border-color);
    padding: 25px;
    margin-bottom: 40px;
    border-radius: 4px;
}

.toc-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    text-transform: uppercase;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.article-toc ol {
    list-style-type: decimal;
    margin-left: 20px;
}

.article-toc li {
    margin-bottom: 10px;
}

.article-toc a {
    font-weight: 600;
    color: var(--text-dark);
    transition: color 0.2s;
}

.article-toc a:hover {
    color: var(--text-gray);
    text-decoration: underline;
}

/* Text Tags inside Article Content */
.article-content h2, 
.article-content h3, 
.article-content h4, 
.article-content h5, 
.article-content h6 {
    font-family: var(--font-display);
    text-transform: uppercase;
    color: var(--text-dark);
    margin-top: 40px;
    margin-bottom: 15px;
    line-height: 1.2;
}

.article-content h2 {
    font-size: 2.2rem;
    border-bottom: 3px solid var(--border-color);
    padding-bottom: 10px;
}

.article-content h3 {
    font-size: 1.8rem;
}

.article-content h4 {
    font-size: 1.5rem;
}

.article-content h5 {
    font-size: 1.3rem;
}

.article-content h6 {
    font-size: 1.1rem;
    color: var(--text-gray);
}

.article-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #333;
}

.article-content span.highlight {
    background-color: var(--text-dark);
    color: var(--text-light);
    padding: 2px 6px;
    font-weight: bold;
    border-radius: 3px;
}

/* Lists */
.article-content ul,
.article-content ol {
    margin-bottom: 25px;
    margin-left: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content ul {
    list-style-type: square;
}

/* Table */
.article-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 1rem;
    text-align: left;
}

.article-table th,
.article-table td {
    padding: 15px;
    border: 1px solid #ddd;
}

.article-table th {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-weight: bold;
    text-transform: uppercase;
    font-family: var(--font-display);
    letter-spacing: 1px;
}

.article-table tbody tr:nth-of-type(even) {
    background-color: #f9f9f9;
}

.article-table tbody tr:hover {
    background-color: #f1f1f1;
}

/* Forms (Contact and Comments) */
.custom-form-section {
    max-width: 900px;
    margin: 60px auto;
    padding: 40px;
    background-color: #f9f9f9;
    border: 2px solid var(--border-color);
}

.comments-section {
    background-color: var(--bg-light);
    border-top: 4px solid var(--border-color);
    border-left: none;
    border-right: none;
    border-bottom: none;
    padding: 40px 0;
}

.form-title {
    font-family: var(--font-display);
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.form-desc {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.standard-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.standard-form .form-group {
    margin-bottom: 20px;
}

.standard-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.standard-form input,
.standard-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #ccc;
    font-family: var(--font-main);
    font-size: 1rem;
    background-color: var(--bg-light);
    transition: border-color 0.3s;
    outline: none;
}

.standard-form input:focus,
.standard-form textarea:focus {
    border-color: var(--border-color);
}

.btn-submit {
    background-color: var(--bg-dark);
    color: var(--text-light);
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-family: var(--font-display);
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s;
    display: inline-block;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: #333;
}

/* Related Articles Adjustments */
.related-articles {
    border-top: 3px solid var(--border-color);
    padding-top: 40px;
}

@media (max-width: 768px) {
    .standard-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .custom-form-section {
        padding: 25px 15px;
    }
    
    .article-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}