/* Buttchan - 4chan-style layout with orange retro aesthetic */

:root {
    --bg-cream: #ffe4c4;
    --bg-light: #fff5e6;
    --primary-red: #cc4400;
    --primary-orange: #ff8c00;
    --dark-orange: #cc7000;
    --light-orange: #ffb347;
    --link-blue: #0066cc;
    --link-hover: #ff6600;
    --text-dark: #800000;
    --text-black: #000000;
    --border-color: #cc4400;
    --header-bg: #ff9933;
    --section-bg: #ffe4c4;
    --adult-red: #cc0000;
}

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

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    background-color: var(--bg-cream);
    color: var(--text-black);
    line-height: 1.4;
}

a {
    color: var(--link-blue);
    text-decoration: none;
}

a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* Top Header with Logo */
.top-header {
    text-align: center;
    padding: 20px 10px;
    background: linear-gradient(180deg, #ffcc99 0%, var(--bg-cream) 100%);
}

.main-logo {
    width: 300px;
    height: auto;
    display: block;
    margin: 0 auto 10px auto;
    border-radius: 15px;
}

.main-logo:hover {
    opacity: 0.9;
}

.site-title {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary-red);
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
    margin: 0;
    font-family: 'Tahoma', Arial, sans-serif;
}

/* Info Box - "What is Buttchan" */
.info-box {
    max-width: 900px;
    margin: 15px auto;
    border: 1px solid var(--primary-red);
    background: var(--bg-light);
}

.info-header {
    background: var(--primary-red);
    color: white;
    padding: 5px 10px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
}

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

.info-content {
    padding: 12px 15px;
    font-size: 13px;
    line-height: 1.5;
}

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

.info-content p:last-child {
    margin-bottom: 0;
}

.info-content a {
    text-decoration: underline;
}

/* Boards Section */
.boards-section {
    max-width: 900px;
    margin: 15px auto;
    border: 1px solid var(--primary-red);
    background: var(--bg-light);
}

.boards-header {
    background: var(--primary-red);
    color: white;
    padding: 5px 10px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.boards-title {
    font-size: 14px;
}

.boards-filter a {
    color: white;
    font-size: 12px;
    font-weight: normal;
}

.boards-filter a:hover {
    text-decoration: underline;
}

.boards-container {
    display: flex;
    flex-wrap: wrap;
    padding: 15px;
    gap: 5px;
}

.board-column {
    flex: 1;
    min-width: 140px;
    padding: 0 10px;
}

.category-title {
    color: var(--primary-red);
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 5px;
    border-bottom: 1px solid var(--primary-red);
    padding-bottom: 3px;
}

.misc-title {
    margin-top: 15px;
}

.adult-title {
    color: var(--adult-red);
}

.nsfw-tag {
    color: var(--adult-red);
    font-weight: normal;
    font-size: 11px;
}

.board-list {
    list-style: none;
}

.board-list li {
    padding: 2px 0;
}

.board-list a {
    color: var(--link-blue);
    font-size: 12px;
}

.board-list a:hover {
    color: var(--link-hover);
}

.adult-list a {
    color: var(--adult-red);
}

.adult-list a:hover {
    color: #ff0000;
}

/* Popular Threads Section */
.popular-section {
    max-width: 900px;
    margin: 15px auto;
    border: 1px solid var(--primary-red);
    background: var(--bg-light);
}

.popular-header {
    background: var(--primary-red);
    color: white;
    padding: 5px 10px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popular-title {
    font-size: 14px;
}

.popular-options a {
    color: white;
    font-size: 12px;
    font-weight: normal;
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 15px;
}

.popular-thread {
    text-align: center;
}

.thread-category {
    font-weight: bold;
    color: var(--primary-red);
    font-size: 12px;
    margin-bottom: 8px;
}

.thread-thumb {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 1px solid #ccc;
    margin-bottom: 8px;
    cursor: pointer;
}

.thread-thumb:hover {
    border-color: var(--primary-orange);
}

.thread-title-link {
    font-size: 12px;
    margin-bottom: 5px;
}

.thread-title-link a {
    font-weight: bold;
    color: var(--text-dark);
}

.thread-title-link a:hover {
    color: var(--link-hover);
}

.thread-excerpt {
    font-size: 11px;
    color: #666;
    line-height: 1.3;
    text-align: left;
    padding: 0 5px;
}

/* Footer */
.main-footer {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    border-top: 1px solid var(--primary-red);
    background: var(--bg-cream);
}

.footer-nav {
    margin-bottom: 10px;
}

.footer-nav a {
    color: var(--link-blue);
    margin: 0 5px;
}

.footer-copy {
    font-size: 11px;
    color: #666;
    margin-bottom: 5px;
}

.footer-disclaimer {
    font-size: 10px;
    color: #999;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .main-logo {
        width: 200px;
    }
    
    .site-title {
        font-size: 32px;
    }
    
    .popular-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .boards-container {
        flex-direction: column;
    }
    
    .board-column {
        min-width: 100%;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .main-logo {
        width: 150px;
    }
    
    .site-title {
        font-size: 24px;
    }
    
    .popular-grid {
        grid-template-columns: 1fr;
    }
    
    .thread-thumb {
        width: 120px;
        height: 120px;
    }
}

/* Custom Scrollbar - subtle */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-cream);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-orange);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-orange);
}

/* Selection */
::selection {
    background: var(--primary-orange);
    color: white;
}
