/* VentAnon Base Styles */

:root {
    --bg-primary: #000000;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #0d0d0d;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-muted: #888;
    --border-color: #333;
    --accent-color: #555;
    --hover-color: #2a2a2a;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(30, 0, 0, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 0, 30, 0.2) 0%, transparent 50%);
    background-attachment: fixed;
}

/* Navbar */
.navbar {
    background-color: var(--bg-secondary) !important;
    border-bottom: 2px solid var(--border-color);
    padding: 0.5rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

.navbar-brand-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 3px;
    color: var(--text-primary) !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    margin-bottom: 0;
}

.navbar-slogan {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-style: italic;
    letter-spacing: 1px;
    margin-top: -2px;
    opacity: 0.8;
    font-weight: 300;
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 0.8; transform: translateY(0); }
}

.nav-link {
    color: #fff;
    margin: 0 0.5rem;
    transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: #aaa;
}

/* Cards */
.card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-color);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.7);
}

.card-body {
    color: var(--text-secondary);
}

/* Post Form */
.post-form-compact {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.post-form-compact textarea {
    background-color: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    resize: none;
    padding: 0.5rem 0;
}

.post-form-compact textarea:focus {
    outline: none;
    box-shadow: none;
}

.post-form-options {
    border-top: 1px solid var(--border-color);
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

.post-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
}

.char-count {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Buttons */
.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transition: all 0.3s;
    border-radius: 20px;
    padding: 0.4rem 1.5rem;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #666;
    border-color: #777;
    transform: translateY(-2px);
}

.btn-outline-light {
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.btn-outline-light:hover {
    background-color: var(--hover-color);
    border-color: var(--accent-color);
    color: var(--text-primary);
}

/* Forms */
.form-control, .form-select {
    background-color: #222;
    border-color: var(--border-color);
    color: var(--text-primary);
}

.form-control:focus, .form-select:focus {
    background-color: var(--hover-color);
    border-color: var(--accent-color);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.2rem rgba(128, 128, 128, 0.25);
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* Badges */
.badge {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 0.5em 0.8em;
}

.badge:hover {
    background-color: var(--hover-color);
    border-color: var(--accent-color);
}

/* Category Badges */
.category-badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.35em 0.8em;
    border-radius: 12px;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border: 1px solid var(--border-color);
}

.featured-badge {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    border: none;
}

/* Tags */
.tag {
    display: inline-block;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 0.25rem 0.75rem;
    margin: 0.25rem 0.25rem 0.25rem 0;
    border-radius: 15px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.tag:hover {
    background-color: var(--hover-color);
    border-color: var(--accent-color);
    color: var(--text-primary);
}

/* Thought Content */
.thought-content {
    line-height: 1.6;
    white-space: normal;
    word-wrap: break-word;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.thought-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
}



.hover-underline:hover {
    text-decoration: underline !important;
}

/* Read More Link Styling */

.read-more-link {
    display: inline-block;
    color: #6c9bd6 !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
    padding: 2px 0;
    border-bottom: 1px solid transparent;
}

.read-more-link:hover {
    color: #8bb3e8 !important;
    border-bottom-color: #8bb3e8;
    transform: translateX(3px);
}

.read-more-link i {
    margin-right: 4px;
    font-size: 0.85rem;
}

/* Stats */
.stats {
    display: flex;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.stats span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Filter Bar */
.filter-bar {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.btn-group .btn {
    border-color: var(--border-color);
}

.btn-group .btn.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

/* Dropdown */
.dropdown-menu {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
}

.dropdown-item {
    color: var(--text-secondary);
}

.dropdown-item:hover {
    background-color: var(--hover-color);
    color: var(--text-primary);
}

.dropdown-divider {
    border-color: var(--border-color);
}

/* Pagination */
.pagination {
    margin-top: 2rem;
}

.page-link {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.page-link:hover {
    background-color: var(--hover-color);
    border-color: var(--accent-color);
    color: var(--text-primary);
}

.page-item.disabled .page-link {
    background-color: var(--bg-tertiary);
    border-color: var(--border-color);
    color: var(--text-muted);
}

/* Comments */
.comment-section {
    margin-top: 2rem;
}

.comment {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.comment .reply {
    margin-left: 2rem;
    margin-top: 1rem;
    background-color: #111;
    border-left: 3px solid var(--border-color);
}

/* CAPTCHA */
.captcha-container {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    flex-wrap: wrap;
}

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

.captcha img {
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background: #fff;
}

.captcha input[type="text"] {
    max-width: 200px;
}

.captcha + .text-danger {
    margin-top: 8px;
    font-size: 14px;
}

.captcha-wrapper label {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-weight: 500;
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.alert-success {
    background-color: rgba(0, 128, 0, 0.2);
    border-color: #0f0;
    color: #0f0;
}

.alert-danger {
    background-color: rgba(255, 0, 0, 0.2);
    border-color: #f00;
    color: #f00;
}

.alert-info {
    background-color: rgba(0, 123, 255, 0.2);
    border-color: #007bff;
    color: #17a2b8;
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.2);
    border-color: #ffc107;
    color: #ffc107;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-slogan {
        font-size: 0.65rem;
    }
    
    .stats {
        gap: 1rem;
        font-size: 0.85rem;
    }
    
    .comment .reply {
        margin-left: 1rem;
    }
}

/* Hide chat on mobile */
@media (max-width: 992px) {
    .chat-sidebar {
        width: 100%;
        right: -100%;
        transition: right 0.3s ease;
    }
    
    .chat-sidebar.active {
        right: 0;
    }
}

/* Main content adjustment when chat is visible */
@media (min-width: 993px) {
    .main-with-chat {
        margin-right: 320px;
    }
}
