/**
 * Forum CSS styles
 * File: assets/css/forum.css
 */

:root {
    --primary-color: #0039a6;
    --primary-color-light: #0057ff;
    --primary-color-dark: #002d80;
    --secondary-color: #00a0ff;
    --accent-color: #ff6b00;
    --success-color: #00b248;
    --danger-color: #f9423a;
    --warning-color: #ffc400;
    --text-color: #101827;
    --text-color-light: #4b5563;
    --background-color: #edf2f7;
    --card-color: #ffffff;
    --card-highlight: #f0f7ff;
    --border-color: #d1d5db;
    --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px -1px rgba(0, 0, 0, 0.15), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --transition-speed: 0.2s;
}

[data-theme="dark"] {
    --primary-color: #1e88e5;
    --primary-color-light: #42a5f5;
    --primary-color-dark: #1565c0;
    --secondary-color: #00a0ff;
    --accent-color: #ff8f00;
    --success-color: #00c853;
    --danger-color: #ff5252;
    --warning-color: #ffd600;
    --text-color: #f1f5f9;
    --text-color-light: #b0bec5;
    --background-color: #0f172a;
    --card-color: #1e293b;
    --card-highlight: #172a46;
    --border-color: #334155;
    --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.25);
    --shadow-md: 0 4px 8px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.35), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
}

/* Reset and Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    transition: background-color var(--transition-speed) ease;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--primary-color-light);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-dark) 100%);
    padding: 0.75rem 0;
    color: white;
    box-shadow: var(--shadow-md);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo a {
    color: white;
    text-decoration: none;
}

.logo i {
    font-size: 1.75rem;
}

.slogan {
    display: block;
    font-size: 0.875rem;
    font-weight: 400;
    opacity: 0.8;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.theme-toggle button {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: background-color var(--transition-speed) ease;
}

.theme-toggle button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Auth buttons */
.auth-buttons {
    display: flex;
    gap: 0.5rem;
}

.login-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    color: white;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
}

.login-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.register-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: white;
    border-radius: var(--radius-md);
    color: var(--primary-color);
    font-weight: 500;
    transition: all var(--transition-speed) ease;
}

.register-button:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* User dropdown */
.user-dropdown {
    position: relative;
}

.user-menu-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: white;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease;
}

.user-menu-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.user-dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    margin-top: 0.5rem;
    background-color: var(--card-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-speed) ease;
    z-index: 10;
}

.user-dropdown:hover .user-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-content a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    transition: background-color var(--transition-speed) ease;
}

.user-dropdown-content a:hover {
    background-color: var(--card-highlight);
    color: var(--primary-color);
}

/* Breadcrumbs */
.breadcrumb-container {
    position: sticky;
    background-color: var(--card-color);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.875rem;
}

.breadcrumbs a {
    color: var(--primary-color);
}

.breadcrumbs .separator {
    margin: 0 0.5rem;
    color: var(--text-color-light);
}

.breadcrumbs .current {
    color: var(--text-color-light);
}

/* Main content */
main {
    padding: 2rem 0;
}

/* Alerts */
.alert {
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-left: 4px solid;
}

.alert-success {
    background-color: rgba(0, 178, 72, 0.1);
    border-color: var(--success-color);
    color: var(--success-color);
}

.alert-error {
    background-color: rgba(249, 66, 58, 0.1);
    border-color: var(--danger-color);
    color: var(--danger-color);
}

.alert-warning {
    background-color: rgba(255, 196, 0, 0.1);
    border-color: var(--warning-color);
    color: var(--warning-color);
}

.alert-info {
    background-color: rgba(0, 160, 255, 0.1);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.close-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.7;
    transition: opacity var(--transition-speed) ease;
    color: inherit;
}

.close-button:hover {
    opacity: 1;
}

/* Forum layout */
.forum-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

.forum-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.forum-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
}

.forum-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Search form */
.search-container {
    position: relative;
    width: 300px;
}

.search-input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--card-color);
    color: var(--text-color);
    transition: border-color var(--transition-speed) ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-button {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-color-light);
    cursor: pointer;
    font-size: 1rem;
}

.search-clear {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    display: inline-block;
    color: var(--text-color-light);
    text-decoration: none;
    font-size: 0.875rem;
}

.search-results-info {
    background-color: var(--card-color);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.clear-search {
    color: var(--danger-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

/* New topic button */
.new-topic-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all var(--transition-speed) ease;
}

.new-topic-button:hover {
    background-color: var(--primary-color-dark);
    color: white;
    transform: translateY(-2px);
}

/* Topics list */
.topics-list {
    background-color: var(--card-color);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.topics-header {
    display: grid;
    grid-template-columns: 1fr 100px 200px;
    background-color: var(--card-highlight);
    padding: 0.75rem 1rem;
    font-weight: 500;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

.topic-item {
    display: grid;
    grid-template-columns: 1fr 100px 200px;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-speed) ease;
}

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

.topic-item:hover {
    background-color: var(--card-highlight);
}

.topic-item.sticky {
    background-color: rgba(var(--primary-color-rgb), 0.05);
}

.topic-info {
    display: flex;
    gap: 1rem;
}

.topic-icon {
    font-size: 1.25rem;
    color: var(--text-color-light);
    margin-top: 0.25rem;
}

.topic-icon .fa-thumbtack {
    color: var(--accent-color);
}

.topic-icon .fa-lock {
    color: var(--danger-color);
}

.topic-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.topic-title {
    font-weight: 600;
    color: var(--text-color);
    transition: color var(--transition-speed) ease;
}

.topic-title:hover {
    color: var(--primary-color);
}

.topic-meta {
    font-size: 0.875rem;
    color: var(--text-color-light);
}

.topic-meta a {
    color: var(--primary-color);
}

.topic-stats {
    text-align: center;
    font-weight: 500;
}

.topic-last-post {
    font-size: 0.875rem;
}

.last-post-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.last-post-date {
    color: var(--text-color-light);
}

.no-topics, .no-matches {
    padding: 3rem 1rem;
    text-align: center;
    color: var(--text-color-light);
}

/* Sidebar */
.forum-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-section {
    background-color: var(--card-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.sidebar-title {
    padding: 0.75rem 1rem;
    background-color: var(--card-highlight);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

.forum-stats {
    padding: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
}

.stat-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.stat-details {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-weight: 600;
    color: var(--text-color);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-color-light);
}

.recent-posts {
    padding: 1rem;
}

.recent-post-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.recent-post-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.recent-post-meta {
    font-size: 0.75rem;
    color: var(--text-color-light);
    display: flex;
    justify-content: space-between;
}

.online-users {
    padding: 1rem;
}

.users-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.online-user {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background-color: var(--card-highlight);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--text-color);
    transition: all var(--transition-speed) ease;
}

.online-user:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Pagination */
.pagination-container {
    margin: 1.5rem 0;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.pagination-button {
    padding: 0.5rem 1rem;
    background-color: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--text-color);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-button:hover:not(:disabled) {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    padding: 0.5rem 1rem;
    color: var(--text-color);
    font-size: 0.875rem;
}

/* Topic view */
.topic-wrapper {
    background-color: var(--card-color);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 2rem;
}

.topic-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.topic-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.topic-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-color-light);
}

.topic-status {
    margin-top: 1rem;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.topic-status.locked {
    background-color: rgba(249, 66, 58, 0.1);
    color: var(--danger-color);
}

.topic-actions {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--card-highlight);
    border-bottom: 1px solid var(--border-color);
}

/* Posts */
.posts-container {
    padding: 1.5rem;
}

.post {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

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

.post-sidebar {
    background-color: var(--card-highlight);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--primary-color-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.default-avatar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.username {
    font-weight: 600;
    color: var(--primary-color);
}

.user-stats {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-color-light);
    width: 100%;
}

.user-stats .stat {
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-color-light);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.post-actions {
    display: flex;
    gap: 0.75rem;
}

.post-action {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-color-light);
    transition: color var(--transition-speed) ease;
}

.post-action:hover {
    color: var(--primary-color);
}

.post-body {
    line-height: 1.7;
    overflow-wrap: break-word;
}

/* BBCode styles */
.post-body pre {
    background-color: var(--card-highlight);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
}

.post-body blockquote {
    background-color: var(--card-highlight);
    border-left: 4px solid var(--primary-color);
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    font-style: italic;
}

.post-body blockquote small {
    color: var(--text-color-light);
    display: block;
    margin-bottom: 0.5rem;
}

.post-body img.user-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 1rem 0;
}

.post-body ul, .post-body ol {
    padding-left: 2rem;
    margin: 1rem 0;
}

/* Reply form */
.reply-form-container {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--card-highlight);
}

.reply-form-container h3 {
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-color);
}

.bbcode-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background-color: var(--card-color);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.bbcode-toolbar button {
    padding: 0.5rem;
    background-color: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-color);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.bbcode-toolbar button:hover {
    background-color: var(--primary-color);
    color: white;
}

textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--card-color);
    color: var(--text-color);
    resize: vertical;
    transition: border-color var(--transition-speed) ease;
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.btn {
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all var(--transition-speed) ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--card-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: var(--card-highlight);
    transform: translateY(-2px);
}

.login-prompt {
    padding: 2rem;
    text-align: center;
    color: var(--text-color-light);
}

#preview-container {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: var(--card-color);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

/* Auth forms */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

.auth-form-container {
    width: 100%;
    max-width: 500px;
    background-color: var(--card-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 2rem;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-color);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text-color);
}

.form-hint {
    font-size: 0.75rem;
    color: var(--text-color-light);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--card-color);
    color: var(--text-color);
    transition: border-color var(--transition-speed) ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.remember-me, .terms-agreement {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.remember-me label, .terms-agreement label {
    font-weight: normal;
    font-size: 0.875rem;
}

.forgot-password {
    font-size: 0.875rem;
    text-align: right;
}

.auth-links {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-color-light);
}

/* Footer */
.footer {
    background-color: var(--card-color);
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    color: var(--text-color-light);
    transition: color var(--transition-speed) ease;
}

.footer-link:hover {
    color: var(--primary-color);
}

.footer-copyright {
    text-align: center;
    color: var(--text-color-light);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed) ease;
    box-shadow: var(--shadow-md);
    z-index: 20;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-3px);
}

/* Responsive styles */
@media (max-width: 992px) {
    .forum-wrapper {
        grid-template-columns: 1fr;
    }
    
    .forum-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .post {
        grid-template-columns: 150px 1fr;
    }
}

@media (max-width: 768px) {
    .post {
        grid-template-columns: 1fr;
    }
    
    .post-sidebar {
        padding: 1rem;
    }
    
    .user-info {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        gap: 1rem;
    }
    
    .user-stats {
        display: flex;
        gap: 1rem;
    }
    
    .topics-header, .topic-item {
        grid-template-columns: 1fr 80px;
    }
    
    .topic-last-post {
        display: none;
    }
    
    .search-container {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .logo {
        font-size: 1.25rem;
    }
    
    .slogan {
        display: none;
    }
    
    .topic-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .bbcode-toolbar {
        overflow-x: auto;
        padding: 0.5rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .post-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .auth-form-container {
        padding: 1.5rem;
    }
}
