/* Simple, Memepool-inspired CSS with improved formatting */

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

body {
    font-family: 'Monaco', 'Menlo', 'Consolas', 'Courier', monospace;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    background: #fff;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    border-bottom: 2px solid #000;
    padding: 20px 0;
    margin-bottom: 30px;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 24px;
    font-weight: bold;
}

.site-title a {
    color: #000;
    text-decoration: none;
}

.site-title a:hover {
    text-decoration: underline;
}

.nav {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

.nav-link:hover {
    text-decoration: underline;
}

/* Main Content */
.main {
    margin-bottom: 40px;
}

.container {
    width: 100%;
}

/* News List */
.news-list {
    margin-bottom: 30px;
}

.news-item {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
    margin-bottom: 20px;
}

.news-item:last-child {
    border-bottom: none;
}

/* Prominent Date - Memepool style */
.news-date {
    font-size: 12px;
    color: #666;
    font-weight: bold;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 12px;
    line-height: 1.3;
}

.news-title a {
    color: #000;
    text-decoration: none;
    display: block;
}

.news-title a:hover {
    text-decoration: underline;
    color: #333;
}

.news-content {
    color: #333;
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 14px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

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

.news-source {
    font-size: 12px;
    color: #999;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.source-link {
    color: #999;
    text-decoration: none;
    transition: color 0.2s ease;
}

.source-link:hover {
    color: #666;
    text-decoration: underline;
}

/* Tags */
.news-tags {
    margin-top: 10px;
    margin-bottom: 15px;
}

.tag {
    display: inline-block;
    background: #f0f0f0;
    color: #333;
    padding: 4px 8px;
    margin-right: 8px;
    margin-bottom: 4px;
    font-size: 11px;
    text-decoration: none;
    border: 1px solid #ccc;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.tag:hover {
    background: #e0e0e0;
    text-decoration: underline;
    transform: translateY(-1px);
}

/* Audio Player - Improved */
.audio-player {
    margin: 15px 0;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.audio-player audio {
    width: 100%;
    height: 35px;
    border-radius: 4px;
    background: #fff;
}

.audio-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.audio-error {
    color: #d32f2f;
    font-size: 12px;
    margin-top: 8px;
    padding: 8px;
    background: #ffebee;
    border-radius: 4px;
    border-left: 3px solid #d32f2f;
}

/* Broadcast Audio */
.broadcast-audio {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.broadcast-audio audio {
    width: 100%;
    height: 40px;
    border-radius: 4px;
}

.audio-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 12px;
    color: #6c757d;
}

.audio-info i {
    color: #007bff;
}

.broadcast-no-audio {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 15px 0;
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 12px;
    color: #6c757d;
}

.broadcast-no-audio i {
    color: #6c757d;
}

/* Load More */
.load-more {
    text-align: center;
    margin-top: 30px;
}

.load-more-btn {
    font-family: inherit;
    font-size: 14px;
    padding: 12px 24px;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.load-more-btn:hover {
    background: #333;
}

.load-more-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

/* Footer */
.footer {
    border-top: 1px solid #eee;
    padding: 20px 0;
    text-align: center;
    color: #999;
    font-size: 12px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    padding: 30px;
    border: 2px solid #000;
    max-width: 400px;
    width: 90%;
    border-radius: 6px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: bold;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.modal-close:hover {
    color: #000;
}

/* Forms */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-weight: bold;
    font-size: 12px;
}

.form-group input {
    font-family: inherit;
    font-size: 14px;
    padding: 10px 12px;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 4px;
}

.form-group input:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
}

.btn {
    font-family: inherit;
    font-size: 14px;
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.btn-primary {
    background: #000;
    color: #fff;
}

.btn-primary:hover {
    background: #333;
}

/* Responsive */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    
    .header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav {
        gap: 15px;
    }
    
    .news-item {
        padding: 15px 0;
    }
    
    .modal-content {
        padding: 20px;
    }
    
    .audio-player {
        padding: 10px;
    }
}

/* Utility Classes */
.hidden {
    display: none;
}

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

.text-muted {
    color: #999;
}

.font-bold {
    font-weight: bold;
}

/* Error states */
.error-message {
    color: #d32f2f;
    background: #ffebee;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    border-left: 3px solid #d32f2f;
}

/* Success states */
.success-message {
    color: #2e7d32;
    background: #e8f5e8;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    border-left: 3px solid #2e7d32;
}

/* Story Sources Section */
.story-sources {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-left: 4px solid #007cba;
    border-radius: 4px;
}

.sources-label {
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
    font-size: 14px;
}

.sources-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.source-link {
    color: #007cba;
    text-decoration: none;
    padding: 8px 12px;
    background: white;
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: all 0.2s ease;
    font-size: 14px;
}

.source-link:hover {
    background: #007cba;
    color: white;
    text-decoration: none;
    transform: translateX(5px);
}

/* Story-specific styling */
.story-item {
    border-left: 5px solid #007cba;
}

.story-title {
    color: #007cba;
    font-size: 24px;
    margin-bottom: 15px;
}

.story-content {
    line-height: 1.7;
    font-size: 16px;
    color: #444;
}
