:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

body {
    background-color: #f8f9fa;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-brand .site-subtitle {
    font-size: 0.875rem;
    font-weight: 400;
    color: #6c757d;
    margin-left: 0.5rem;
}

.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.15s ease-in-out;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.post-item {
    padding: 1rem 0;
    border-bottom: 1px solid #dee2e6;
}

.post-item:last-child {
    border-bottom: none;
}

.post-item.sticky .post-title a {
    color: var(--danger-color);
}

.post-item.digest {
    background-color: #f0fff0;
    border-left: 3px solid #28a745;
    padding-left: 1rem;
    margin-left: -1rem;
}

.post-item.digest .post-title a {
    color: #28a745;
}

.post-title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.post-title a {
    color: #212529;
    text-decoration: none;
}

.post-title a:hover {
    color: var(--primary-color);
}

.post-meta {
    font-size: 0.875rem;
    color: #6c757d;
}

.post-meta span {
    margin-right: 1rem;
}

.category-filter .badge {
    text-decoration: none;
    transition: all 0.15s ease-in-out;
}

.category-filter .badge:hover {
    opacity: 0.8;
}

.sidebar-card {
    position: sticky;
    top: 1rem;
}

.stats-item {
    padding: 0.5rem 0;
}

.stats-item strong {
    font-size: 1.5rem;
    display: block;
}

.avatar-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 3rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    overflow: hidden;
}

.avatar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-item {
    padding: 1rem 0;
    border-bottom: 1px solid #dee2e6;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-author {
    font-weight: 600;
}

.comment-time {
    font-size: 0.875rem;
    color: #6c757d;
}

.comment-content {
    margin-top: 0.5rem;
}

.comment-replies {
    margin-left: 2rem;
    padding-left: 1rem;
    border-left: 3px solid #dee2e6;
    margin-top: 1rem;
}

.reply-form {
    display: none;
    margin-top: 1rem;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.locked-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.post-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

.post-actions .btn {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.admin-sidebar .nav-link {
    color: #495057;
    border-radius: 0.375rem;
    margin-bottom: 0.25rem;
}

.admin-sidebar .nav-link:hover {
    background-color: #e9ecef;
}

.admin-sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: #fff;
}

.data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.tab-content > .tab-pane {
    display: none;
}

.tab-content > .tab-pane.active {
    display: block;
}

.profile-tabs .nav-link {
    color: #495057;
}

.profile-tabs .nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.flash-message {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1050;
    min-width: 300px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .sidebar-card {
        position: static;
        margin-top: 1rem;
    }
    
    .post-meta span {
        display: inline-block;
        margin-bottom: 0.25rem;
    }
}
