/* Survivalist Forum Pre-lander - Authentic Legacy Style */

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

body {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    background: #e1e1e1;
    /* Slightly darker grey for that old forum feel */
    color: #191500;
    line-height: 1.4;
    min-height: 100vh;
}

a {
    color: #004a99;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header - Starker, less "modern" */
.site-header {
    background: #1a1a1a;
    padding: 10px 0;
    border-bottom: 3px solid #b10000;
    /* Added a "rugged" red accent border */
}

.header-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    color: #fff;
    font-weight: 700;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.search-bar input {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 0;
    /* Sharp corners */
    padding: 4px 10px;
    color: #333;
    width: 250px;
    font-size: 12px;
}

.header-nav {
    display: flex;
    gap: 15px;
    align-items: center;
}

.header-nav a {
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.login-btn {
    background: #444;
    color: #fff !important;
    padding: 4px 12px;
    border: 1px solid #666;
}

/* Breadcrumbs */
.breadcrumbs {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 15px;
    font-size: 11px;
    color: #555;
}

/* Main Content */
.main-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px 40px;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 15px;
}

/* Thread Container */
.thread-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    /* Posts connect for that dense look */
}

.thread-title {
    font-size: 20px;
    font-weight: 700;
    color: #191500;
    margin-bottom: 12px;
    line-height: 1.2;
}

/* Post Cards */
.forum-card {
    background: #fff;
    border: 1px solid #ccc;
    display: flex;
    margin-bottom: -1px;
    /* Overlap borders for table-like look */
}

.forum-card.original-post {
    border-top: 2px solid #666;
}

/* User Sidebar - Rugged & Detailed */
.user-sidebar {
    width: 160px;
    flex-shrink: 0;
    padding: 15px 10px;
    background: #f8f9fa;
    border-right: 1px solid #eee;
    font-size: 11px;
}

.avatar {
    width: 100px;
    height: 100px;
    border: 1px solid #ddd;
    padding: 3px;
    background: #fff;
    margin: 0 auto 10px;
    display: block;
    border-radius: 2px;
}

.username {
    display: block;
    font-weight: 700;
    font-size: 13px;
    color: #b10000;
    /* Red usernames for emphasis */
    margin-bottom: 5px;
    text-align: center;
}

.user-stats {
    color: #666;
    line-height: 1.4;
}

.user-stats b {
    color: #333;
}

.user-badge {
    margin-top: 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #444;
    border: 1px solid #ccc;
    background: #eee;
    padding: 2px 6px;
    display: block;
    text-align: center;
}

/* Post Content */
.post-content {
    flex: 1;
    padding: 15px 20px;
    position: relative;
}

.thread-title {
    font-size: 26px;
    /* Bigger and more prominent */
    font-weight: 700;
    color: #1a1a1a;
    margin: 5px 0 15px 0;
    line-height: 1.2;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #666;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.post-body {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.post-body p {
    margin-bottom: 15px;
}

/* Quote/Notice Box */
.quote-box {
    background: #f0f7ff;
    border: 1px dashed #004a99;
    padding: 12px 15px;
    margin: 15px 0;
    font-size: 13px;
    color: #003366;
}

/* Video CTA Thumbnail */
.video-cta {
    display: block;
    max-width: 100%;
    margin: 20px auto;
    text-decoration: none;
    border: none;
}

.video-thumbnail-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    /* Limit max width for desktop */
    margin: 0 auto;
    border: 4px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    overflow: hidden;
}

.video-thumb {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
}

.video-thumbnail-container:hover .video-thumb {
    transform: scale(1.02);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    /* Dark overlay */
    transition: background 0.3s ease;
}

.video-thumbnail-container:hover .play-overlay {
    background: rgba(0, 0, 0, 0.1);
}

.play-button {
    width: 60px;
    height: 60px;
    background: rgba(204, 0, 0, 0.9);
    /* YouTube Red */
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

.play-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    border-left: 20px solid white;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
}

.play-text {
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(0, 0, 0, 0.6);
    padding: 5px 10px;
    border-radius: 4px;
}

.post-signature {
    margin-top: 25px;
    padding-top: 10px;
    font-size: 11px;
    color: #777;
    border-top: 1px solid #eee;
}

/* Actions */
.post-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.action-btn {
    background: #eee;
    border: 1px solid #ccc;
    color: #444;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    padding: 3px 8px;
}

.action-btn:hover {
    background: #ddd;
}

/* Reactions */
.reactions {
    margin-top: 10px;
    padding: 6px 10px;
    background: #f9f9f9;
    border: 1px solid #eee;
    font-size: 11px;
    color: #666;
}

/* Reply Box */
.reply-box {
    background: #f6f6f6;
    border: 1px solid #ccc;
    border-top: none;
    padding: 15px;
    text-align: left;
    color: #555;
    font-size: 12px;
}

/* Sidebar */
.sidebar-card {
    background: #f9f9f9;
    border: 1px solid #ccc;
    margin-bottom: 15px;
    padding: 12px;
}

.sidebar-card h3 {
    font-size: 12px;
    text-transform: uppercase;
    border-bottom: 2px solid #ccc;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.sidebar-card ul li {
    font-size: 11px;
    padding: 4px 0;
    border-bottom: 1px solid #eee;
}

/* Sidebar Ads Column */
.sidebar-ads-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
    /* Center smaller ads in sidebar */
}

.sidebar-ad {
    width: 160px;
    /* Smaller, standard banner size */
    border: 1px solid #ccc;
    background: #fff;
    padding: 1px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sidebar-ad img {
    width: 100%;
    height: auto;
    display: block;
}

.contributor {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    font-size: 11px;
}

.contributor img {
    width: 24px;
    height: 24px;
    border: 1px solid #ccc;
}

/* Footer */
.site-footer {
    background: #111;
    color: #777;
    text-align: center;
    padding: 20px;
    font-size: 11px;
}

/* Mobile - Responsive Overrides */
@media (max-width: 800px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        display: block;
        /* Switch to block for easier stacking */
    }

    .sidebar {
        margin-top: 20px;
    }

    /* Mobile: Ads in a grid/row instead of stack */
    .sidebar-ads-column {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .search-bar {
        display: none !important;
    }

    .header-content,
    .main-content,
    .breadcrumbs {
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
    }
}

@media (max-width: 600px) {
    .nav-extra {
        display: none !important;
    }

    .logo {
        font-size: 16px;
    }

    .user-sidebar {
        width: 120px;
        font-size: 10px;
    }

    .avatar {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .forum-card {
        flex-direction: column;
    }

    .user-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
        display: flex;
        flex-direction: row;
        /* Horizontal on mobile */
        align-items: center;
        gap: 12px;
        padding: 8px;
    }

    .avatar {
        margin: 0;
        width: 40px;
        height: 40px;
    }

    .username {
        text-align: left;
        margin-bottom: 0;
        font-size: 12px;
    }

    .user-stats {
        display: none;
    }

    .user-badge {
        margin-top: 0;
        margin-left: auto;
        font-size: 9px;
    }

    .post-content {
        padding: 10px 12px;
    }

    .thread-title {
        font-size: 24px;
        /* Increased from 16px for prominence */
        line-height: 1.3;
        margin-bottom: 20px;
    }
}