/* Tor-friendly blog styles - no external dependencies */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    min-height: 100vh;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

header {
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

header h1 a {
    text-decoration: none;
    color: inherit;
}

header h1 a:hover {
    color: #3498db;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: #6c757d;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

nav a:hover {
    background-color: #e9ecef;
    color: #495057;
}

main h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

/* Post previews */
.post-preview {
    border-bottom: 1px solid #e9ecef;
    padding: 20px 0;
}

.post-preview:last-child {
    border-bottom: none;
}

.post-preview h3 {
    margin-bottom: 10px;
}

.post-preview h3 a {
    text-decoration: none;
    color: #2c3e50;
    font-size: 1.4rem;
}

.post-preview h3 a:hover {
    color: #3498db;
}

.post-meta {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.post-meta .date {
    font-weight: 500;
}

.post-meta .author {
    font-style: italic;
}

.tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.tag {
    background-color: #e9ecef;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    color: #495057;
}

.excerpt {
    color: #6c757d;
    line-height: 1.6;
}

/* Individual post */
.post {
    margin-bottom: 40px;
}

.post-header {
    margin-bottom: 30px;
}

.post-header h1 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-content p {
    margin-bottom: 20px;
}

/* Submit form */
.submit-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #495057;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 200px;
}

button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

button:hover {
    background-color: #2980b9;
}

button.delete {
    background-color: #e74c3c;
}

button.delete:hover {
    background-color: #c0392b;
}

button.approve {
    background-color: #27ae60;
}

button.approve:hover {
    background-color: #229954;
}

/* Admin panel */
#submissions, #posts {
    margin-bottom: 40px;
}

.submission-item, .post-item {
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 15px;
    background-color: #f8f9fa;
}

.submission-item h4, .post-item h4 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.submission-meta, .post-meta {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 15px;
}

.submission-content, .post-content {
    margin-bottom: 15px;
    line-height: 1.6;
}

.admin-actions {
    display: flex;
    gap: 10px;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    nav {
        flex-direction: column;
        gap: 10px;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }
    
    .admin-actions {
        flex-direction: column;
    }
    
    .post-header h1 {
        font-size: 1.8rem;
    }
}

/* Loading state */
.loading {
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

/* Success/error messages */
.message {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
} 