/* 4chan-inspired dchan.soy Landing Page - 100% Accurate Color & Layout Match */

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

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10pt;
    background: linear-gradient(to bottom, #FFF5ED 0%, #F5E5D5 50%, #EEAA88 100%);  /* Very subtle light peachy gradient */
    background-attachment: fixed;
    color: #000;
    line-height: 1.2;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 5px;
}

/* Header */
header {
    text-align: center;
    padding: 10px 0 15px 0;
}

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

.logo {
    width: 250px;
    height: 250px;
}

header h1 {
    font-size: 90pt;
    font-weight: bold;
    color: #AF0A0F;  /* Exact 4chan maroon for header text */
    font-family: Tahoma, sans-serif;
}

/* Info Box - Exact 4chan styling */
.info-box {
    background-color: #F0E0D6;  /* Exact 4chan beige/tan background */
    border: 1px solid #D9BFB7;  /* Exact 4chan tan border */
    margin: 0 0 5px 0;
    padding: 0;
}

.info-header {
    background-color: #800;  /* DARK MAROON like 4chan */
    border-bottom: 1px solid #800;
    padding: 3px 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-header h2 {
    font-size: 10pt;
    font-weight: bold;
    color: #FFF;  /* WHITE text on dark maroon */
}

.close-btn {
    background: none;
    border: none;
    font-size: 14pt;
    color: #FFF;  /* White for close button */
    cursor: pointer;
    padding: 0;
    width: 16px;
    height: 16px;
    line-height: 1;
}

.close-btn:hover {
    color: #CCC;
}

.info-content {
    padding: 5px 8px;
    font-size: 9pt;
    line-height: 1.3;
}

.info-content p {
    margin-bottom: 8px;
}

.info-content ul {
    margin: 5px 0 8px 20px;
}

.info-content a {
    color: #34345C;  /* Exact 4chan link blue */
    text-decoration: underline;
}

.info-content a:hover {
    color: #D00;
}

/* Boards Section - Exact 4chan styling */
.boards-section {
    background-color: #F0E0D6;  /* Exact 4chan beige/tan background */
    border: 1px solid #D9BFB7;  /* Exact 4chan tan border */
    margin: 5px 0;
    padding: 0;
}

.section-header {
    background-color: #800;  /* DARK MAROON like 4chan */
    border-bottom: 1px solid #800;
    padding: 3px 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h2 {
    font-size: 10pt;
    font-weight: bold;
    color: #FFF;  /* WHITE text on dark maroon */
}

.blur-toggle {
    background-color: transparent;
    border: none;
    padding: 0;
    font-size: 9pt;
    cursor: pointer;
    color: #FFF;  /* White text */
}

.blur-toggle:hover {
    color: #CCC;
}

.boards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 8px;
    overflow: hidden;
    max-height: 2000px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.boards-grid.collapsed {
    max-height: 0;
    padding: 0;
}

.board-category {
    font-size: 9pt;
}

.board-category h3 {
    font-size: 9pt;
    font-weight: bold;
    color: #800;  /* Dark maroon text */
    background-color: #F60;  /* Orange background for category labels */
    padding: 2px 4px;
    margin-bottom: 3px;
}

.board-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.board-list li {
    margin: 0 0 1px 0;
    font-size: 9pt;
    line-height: 1.3;
}

.board-list a {
    color: #000;  /* Black text for descriptions */
    text-decoration: none;
    pointer-events: none;
}

.board-list a:hover {
    color: #D00;
}

.board-list .board-name {
    color: #34345C;  /* Exact 4chan board link blue */
    font-weight: bold;
}

/* Download Section */
.download-section {
    background-color: #F0E0D6;  /* Exact 4chan beige/tan background */
    border: 1px solid #D9BFB7;  /* Exact 4chan tan border */
    margin: 5px 0;
    padding: 0;
}

.download-section .section-header {
    background-color: #EA8;  /* Orange header like "Popular Threads" */
    border-bottom: 1px solid #D9BFB7;
}

.download-section .section-header h2 {
    color: #800;  /* Dark maroon text on orange */
}

.download-content {
    padding: 8px;
}

.download-info {
    margin-bottom: 10px;
    font-size: 9pt;
    line-height: 1.3;
}

.download-info h3 {
    font-size: 11pt;
    font-weight: bold;
    color: #800;
    margin-bottom: 5px;
}

.download-info p {
    margin-bottom: 6px;
}

.download-info ul {
    margin: 5px 0 8px 20px;
}

.download-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 10px 0;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background-color: #EA8;  /* Exact 4chan orange */
    border: 1px solid #D9BFB7;
    text-decoration: none;
    color: #000;
    border-radius: 0;
    transition: all 0.2s;
    font-size: 9pt;
}

.download-btn:hover {
    background-color: #DA8;
    border-color: #C9AFA7;
}

.platform-icon {
    font-size: 24pt;
}

.download-btn strong {
    display: block;
    font-size: 10pt;
    margin-bottom: 1px;
    color: #000;
    font-weight: bold;
}

.download-btn small {
    font-size: 8pt;
    color: #333;
}

.download-note {
    background-color: #FFC;
    border: 1px solid #EA8;
    padding: 6px;
    border-radius: 0;
    text-align: center;
    font-size: 9pt;
}

.download-note strong {
    color: #800;
}

/* Stats Section */
.stats-section {
    background-color: #F0E0D6;  /* Exact 4chan beige/tan background */
    border: 1px solid #D9BFB7;  /* Exact 4chan tan border */
    margin: 5px 0;
    padding: 0;
}

.stats-section .section-header {
    background-color: #EA8;  /* Orange header like 4chan Stats */
    border-bottom: 1px solid #D9BFB7;
}

.stats-section .section-header h2 {
    color: #800;  /* Dark maroon text on orange */
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 8px;
}

.stat {
    text-align: center;
    padding: 5px;
    font-size: 9pt;
}

.stat strong {
    display: block;
    font-size: 9pt;
    margin-bottom: 2px;
}

.stat-value {
    color: #800;
    font-weight: bold;
}

/* Footer */
footer {
    text-align: center;
    padding: 10px 0;
    border-top: none;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2px;
    flex-wrap: wrap;
    font-size: 9pt;
}

.footer-nav a {
    color: #000;
    text-decoration: none;
    font-weight: normal;
    padding: 3px 8px;
    border: 1px solid #D9BFB7;  /* Exact 4chan tan border */
    background-color: #F0E0D6;  /* Exact 4chan beige/tan */
    margin: 0;
}

.footer-nav a:hover {
    background-color: #EA8;  /* Orange on hover */
    color: #000;
}

.bottom-links {
    text-align: center;
    padding: 8px 0;
    font-size: 8pt;
    color: #000;
}

.bottom-links a {
    color: #34345C;  /* Exact 4chan link blue */
    text-decoration: underline;
}

.bottom-links a:hover {
    color: #D00;
}

/* Responsive Design */
@media (max-width: 768px) {
    .boards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .download-buttons {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .boards-grid {
        grid-template-columns: 1fr;
    }

    header h1 {
        font-size: 40pt;
    }

    .logo {
        width: 100px;
        height: 100px;
    }
}

/* Animation for board cycling */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.board-list li {
    animation: fadeIn 0.3s ease-in;
}
