/* Time Columns Clean Design - Less wasted space, no box frames */
/* But KEEPS the structure JavaScript depends on */

/* Force light mode - dark mode not yet designed */
:root {
    color-scheme: light only;
}

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

body {
    font-family: "Times New Roman", Times, serif;
    background: #2c2c3e;
    color: #333;
    overflow-x: hidden;
    height: 100vh;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    margin: 0;
}

.container {
    display: flex;
    height: 100vh;
    max-height: 900px;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    touch-action: pan-y;
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    background: white;
    overflow: hidden;
    position: relative;
}

/* Phone notch simulation */
.container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 24px;
    background: #000;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 10;
}

.column {
    min-width: 100%;
    height: 100%;
    padding: calc(env(safe-area-inset-top) + 30px) env(safe-area-inset-right) calc(env(safe-area-inset-bottom) + 20px) env(safe-area-inset-left);
    background: white;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #000;
    margin-bottom: 15px; /* Reduced */
    padding-top: 10px;
    text-align: center;
}

.platform-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: black;
    margin-bottom: 5px;
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 8px; /* Reduced */
}

.nav-btn {
    background: transparent;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    touch-action: manipulation;
    font-family: "Times New Roman", Times, serif;
    transition: background 0.2s, color 0.2s;
}

.nav-btn:hover,
.nav-btn:active {
    background: #f0f0f0;
    color: #000;
}

.date {
    font-size: 1rem;
    color: #666;
    font-style: italic;
    flex-grow: 1;
    text-align: center;
    margin: 0 10px;
}

.day-labels {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 5px;
}

.day-label {
    font-size: 0.9rem;
    color: #999;
    padding: 2px 8px;
    border-radius: 12px;
}

.day-label.active {
    background: #000;
    color: white;
    font-weight: bold;
}

.hidden {
    display: none !important;
}

/* Filters - Compact */
.filters {
    display: flex;
    width: 100%;
    margin-bottom: 12px; /* Reduced */
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 8px; /* Reduced */
}

.filter-option {
    flex: 1 1 0;
    min-width: 0;
    height: 100%;
    position: relative;
    text-align: center;
}

.filter-checkbox {
    display: none;
}

.filter-label {
    flex: 1 1 0;
    padding: 6px 0; /* Reduced */
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.65);
    font-size: 0.8rem; /* Smaller */
    cursor: pointer;
    display: block;
    position: relative;
    transition: all 0.2s;
    border-radius: 3px;
    margin: 0 1px; /* Reduced */
}

.filter-label:not(:last-child)::after {
    content: "|";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.15);
    font-size: 0.8rem;
}

.filter-checkbox:checked + .filter-label {
    background: #f1c40f;
    color: #0f0f0f;
    font-weight: bold;
}

.filter-checkbox:disabled:checked + .filter-label {
    background: #f1c40f;
    color: #0f0f0f;
    font-weight: bold;
    opacity: 0.9;
}

.filter-checkbox:checked + .filter-label::after {
    color: #f1c40f;
}

.filter-label:active {
    background: rgba(241,196,15,0.2);
}

/* Posts container - Minimal spacing */
.posts-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Post wrappers - MINIMAL visual presence */
.post-wrapper {
    position: relative;
    transition: opacity 0.3s;
    /* No border, no background, just spacing */
}

.post-wrapper.hidden-post {
    display: none !important;
}

.post-wrapper.ad-wrapper {
    /* Subtle ad indicator */
    border-left: 2px solid #ffd700;
}

/* Posts - Clean, minimal design */
.post {
    background: white;
    padding: 12px; /* Reduced */
    position: relative;
    /* NO BORDER - per request */
    /* Horizontal rule effect via subtle separator */
    border-bottom: 1px solid #f0f0f0; /* Subtle <hr> effect */
}

.post:last-child {
    border-bottom: none;
}

.post.ad {
    background: #fffdf0; /* Very subtle yellow tint */
}

/* Removed redundant AD label - already in subject div */

/* Post header - position and journalist */
.post-header {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.position {
    font-size: 0.7rem;
    color: #aaa;
    font-weight: normal;
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    width:30px;
}

.journalist {
    font-size: 0.7rem;
    color: #666;
    font-style: italic;
}

.post.ad .post-header {
    top: 8px;
    right: 8px;
}

.post.ad .position {
    background: #ffd700;
    color: #000;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: bold;
}

.post.ad .journalist {
    display: none; /* Ads don't have journalists */
}

/* Subject - Compact */
.subject {
    font-size: 0.7rem; /* Smaller */
    color: #f1c40f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px; /* Reduced */
    font-weight: bold;
    cursor: pointer;
    display: inline-block;
    padding: 1px 4px; /* Reduced */
    background: rgba(241,196,15,0.08); /* Very subtle */
    border-radius: 2px;
}

/* AD subject styling */
.post.ad .subject {
    color: #d48806; /* Gold/orange for ads */
    background: #fff8e1;
    font-weight: bold;
}

/* Title - Compact */
.title {
    font-size: 1.3rem; /* Slightly smaller */
    font-weight: bold;
    margin-bottom: 6px; /* Reduced */
    line-height: 1.3;
}

/* Content - Compact */
.content {
    font-size: 0.85rem; /* Smaller */
    color: #555;
    line-height: 1.4;
    margin-bottom: 10px; /* Reduced */
}

/* Meta - Compact with earnings under views */
.meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Align to top */
    font-size: 0.75rem; /* Smaller */
    color: #777;
    padding-top: 8px; /* Reduced */
}

.meta-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Right align */
    text-align: right;
    gap: 2px;
}

.votes {
    display: flex;
    align-items: center;
    gap: 3px; /* Reduced */
}

.vote-btn {
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 2px;
    width: 22px; /* Smaller */
    height: 22px;
    font-size: 0.7rem; /* Smaller */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.vote-btn:hover {
    background: #f5f5f5;
}

.earnings {
    color: #28a745;
    font-weight: bold;
    font-size: 0.7rem; /* Smaller */
}

.views {
    color: #6c757d;
    font-size: 0.7rem; /* Smaller */
}

/* New post button */
.new-post-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #f1c40f;
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(241,196,15,0.3);
    z-index: 1000;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.new-post-btn:hover {
    background: #d4a80e;
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        padding: 0;
        margin: 0;
        overflow: hidden;
        height: 100vh;
        width: 100vw;
    }
    
    .container {
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
        border: none;
        box-shadow: none;
        margin: 0;
        width: 100vw;
        height: 100vh;
    }
    
    .container::before {
        display: none;
    }
    
    .column {
        padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    }
    
    .header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 6px;
    }
    
    .filters::-webkit-scrollbar {
        display: none;
    }
    
    .filter-option {
        flex: 0 0 auto;
        min-width: 55px; /* Smaller */
    }
    
    .filter-label {
        padding: 4px 0;
        font-size: 0.65rem; /* Smaller */
    }
    
    .post {
        padding: 10px;
    }
    
    .meta {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .new-post-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}

/* Desktop narrow column */
@media (min-width: 769px) {
    body {
        padding: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
    }
    
    .container {
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Dark mode intentionally not implemented - full redesign required */

/* Ad-specific styling */
.ad-badge {
    display: inline-block;
    background: #ffd700;
    color: #333;
    font-weight: bold;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
    margin-right: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ad-link-btn {
    display: inline-block;
    background: #f1c40f;
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

.ad-link-btn:hover {
    background: #d4a80e;
    text-decoration: none;
}

.ad-bid-info {
    font-size: 0.9rem;
    color: #666;
    padding: 5px 0;
}

