/* SA Thread Archive Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Verdana, Arial, sans-serif;
    font-size: 16px;
    background-color: #2E2E2E;
    color: #FFFFFF;
    line-height: 1.4;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: transparent;
}

.header-container {
    background-color: #404040;
    margin-bottom: 25px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    border: 1px solid #555;
}

.thread-header {
    background: linear-gradient(to bottom, #5C7A96, #4A6480);
    padding: 15px 20px;
    border-bottom: 1px solid #666;
    text-align: center;
}

.thread-title {
    font-size: 24px;
    font-weight: bold;
    color: #FFFFFF;
    margin-bottom: 5px;
}

.thread-info {
    font-size: 14px;
    color: #CCCCCC;
}

.pagination {
    background-color: #4A6480;
    padding: 10px 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.pagination.bottom {
    border-top: 1px solid #666;
}

.footer-container {
    background-color: #404040;
    margin-top: 25px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    border: 1px solid #555;
}

.pagination a {
    color: #FFFFFF;
    text-decoration: none;
    padding: 8px 12px;
    background-color: #5C7A96;
    border: 1px solid #7A98B6;
    border-radius: 3px;
    display: inline-block;
    font-weight: bold;
}

.pagination a:hover {
    background-color: #6A86A2;
}

.pagination .nav {
    background-color: #3A5470;
}

.page-dropdown {
    background-color: #5C7A96;
    color: #FFFFFF;
    border: 1px solid #7A98B6;
    border-radius: 3px;
    padding: 8px 12px;
    font-size: 14px;
    font-family: Verdana, Arial, sans-serif;
    cursor: pointer;
}

.page-dropdown:hover {
    background-color: #6A86A2;
}

.page-dropdown:focus {
    outline: none;
    border-color: #8AA6C2;
}

.posts {
    padding: 0;
    margin: 25px 0;
    background-color: #2E2E2E;
}

.post {
    background-color: #404040;
    margin-bottom: 25px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    border: 1px solid #555;
}

.post:last-child {
    margin-bottom: 0;
}

.post-header {
    background: linear-gradient(to bottom, #5C7A96, #4A6480);
    padding: 8px 15px;
    border-bottom: 1px solid #666;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-author {
    font-weight: bold;
    color: #FFFFFF;
    font-size: 18px;
}

.post-date {
    color: #CCCCCC;
    font-size: 14px;
}

.post-content {
    padding: 15px 20px;
    background-color: #404040;
    color: #FFFFFF;
}

.post-content img {
    max-width: 100%;
    height: auto;
}

.post-content a {
    color: #8AA6C2;
}

.post-content a:visited {
    color: #9AAACC;
}

.post-content blockquote {
    background-color: #363636;
    border-left: 3px solid #5C7A96;
    padding: 10px 15px;
    margin: 10px 0;
}

.post-content pre, .post-content code {
    background-color: #2A2A2A;
    border: 1px solid #555;
    padding: 5px;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
}

.post-content hr {
    border: none;
    border-top: 1px solid #666;
    margin: 15px 0;
}

/* Spoiler styling - click to toggle */
.spoiler-toggle {
    display: none;
}

.bbc-spoiler {
    background-color: #000000;
    color: #000000;
    padding: 2px 4px;
    border-radius: 2px;
    cursor: pointer;
    display: inline;
    transition: all 0.3s ease;
    position: relative;
}

.bbc-spoiler::before {
    content: "Click to reveal spoiler";
    position: absolute;
    top: -25px;
    left: 0;
    background-color: #666;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 10;
}

.bbc-spoiler:hover::before {
    opacity: 1;
}

/* When checkbox is checked, reveal the spoiler */
.spoiler-toggle:checked + .bbc-spoiler {
    background-color: #4A4A4A;
    color: #FFFFFF;
    border: 1px solid #666;
    box-shadow: 0 0 3px rgba(255, 255, 255, 0.1);
}

.spoiler-toggle:checked + .bbc-spoiler::before {
    content: "Click to hide spoiler";
}

.footer {
    background-color: #363636;
    padding: 15px 20px;
    text-align: center;
    font-size: 12px;
    color: #AAAAAA;
    border-top: 1px solid #666;
}

.index-page {
    background-color: #404040;
    padding: 30px;
    text-align: center;
}

.index-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.page-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    max-width: 600px;
    margin: 0 auto 30px;
}

.page-link {
    display: block;
    padding: 10px;
    background-color: #5C7A96;
    color: #FFFFFF;
    text-decoration: none;
    border: 1px solid #7A98B6;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.page-link:hover {
    background-color: #6A86A2;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
        font-size: 18px;
    }
    
    .thread-title {
        font-size: 28px;
    }
    
    .thread-info {
        font-size: 16px;
    }
    
    .post-author {
        font-size: 20px;
    }
    
    .post-date {
        font-size: 16px;
    }
    
    .post-content {
        font-size: 18px;
        padding: 18px;
    }
    
    .post-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        padding: 12px 18px;
    }
    
    .pagination {
        flex-direction: column;
        gap: 10px;
        padding: 15px 20px;
    }
    
    .pagination a {
        padding: 12px 16px;
        font-size: 16px;
    }
    
    .page-dropdown {
        width: 100%;
        max-width: 200px;
        font-size: 16px;
        padding: 12px 16px;
    }
    
    .index-title {
        font-size: 28px;
    }
    
    .footer {
        font-size: 14px;
        padding: 18px 20px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
        font-size: 18px;
    }
    
    .thread-title {
        font-size: 28px;
    }
    
    .thread-info {
        font-size: 16px;
    }
    
    .post-author {
        font-size: 20px;
    }
    
    .post-date {
        font-size: 16px;
    }
    
    .post-content {
        font-size: 18px;
        padding: 18px;
    }
    
    .post-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        padding: 12px 18px;
    }
    
    .pagination {
        flex-direction: column;
        gap: 10px;
        padding: 15px 20px;
    }
    
    .pagination a {
        padding: 12px 16px;
        font-size: 16px;
    }
    
    .page-dropdown {
        width: 100%;
        max-width: 200px;
        font-size: 16px;
        padding: 12px 16px;
    }
    
    .index-title {
        font-size: 28px;
    }
    
    .footer {
        font-size: 14px;
        padding: 18px 20px;
    }
}
