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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: #14171a;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: #1da1f2;
    margin: 3px 0;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.logo {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: -0.5px;
}

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

.nav-link {
    text-decoration: none;
    color: #657786;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(29, 161, 242, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(29, 161, 242, 0.1);
    color: #1da1f2;
    transform: translateY(-1px);
}

.main {
    padding: 30px 0;
}

.main-content {
    display: flex;
    gap: 30px;
}

.main-column {
    flex: 1;
    max-width: 700px;
}

.sidebar {
    width: 300px;
    flex-shrink: 0;
}

.sidebar-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.profile-card {
    text-align: center;
    padding: 30px 24px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #1da1f2;
    box-shadow: 0 6px 20px rgba(29, 161, 242, 0.3);
}

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

.profile-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: #14171a;
    margin-bottom: 6px;
    padding: 0;
    border: none;
}

.profile-mood {
    margin-top: 16px;
}

.mood-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #e1e8ed, transparent);
    margin-bottom: 12px;
}

.profile-mood p {
    font-size: 14px;
    color: #657786;
    font-style: italic;
    line-height: 1.6;
    margin: 0;
}

.profile-info p {
    font-size: 13px;
    color: #657786;
    margin: 0;
}

.sidebar-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #14171a;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(29, 161, 242, 0.1);
}

.sidebar-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.stat-item {
    text-align: center;
    padding: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: #1da1f2;
    display: block;
}

.stat-label {
    font-size: 13px;
    color: #657786;
    margin-top: 4px;
}

.sidebar-links {
    list-style: none;
    padding: 0;
}

.sidebar-links li {
    margin-bottom: 8px;
}

.sidebar-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #657786;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.sidebar-links a:hover {
    background-color: rgba(29, 161, 242, 0.08);
    color: #1da1f2;
}

.sidebar-links .icon {
    font-size: 18px;
}

.sidebar-about {
    font-size: 14px;
    color: #657786;
    line-height: 1.7;
}

.sidebar-about p {
    margin-bottom: 12px;
}

.sidebar-images {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-images img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    transition: transform 0.2s ease;
}

.sidebar-images a {
    display: block;
}

.sidebar-image-wrapper {
    display: block;
}

.sidebar-image-title {
    display: block;
    font-size: 12px;
    color: #657786;
    text-align: center;
    margin-top: 6px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e1e8ed;
}

.sidebar-links .link-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-about-description {
    font-size: 13px;
    color: #657786;
    margin-bottom: 12px;
    font-weight: 500;
}

.post-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.login-prompt {
    text-align: center;
    padding: 30px;
}

.login-prompt p {
    color: #657786;
    margin-bottom: 16px;
}

.post-form textarea {
    width: 100%;
    min-height: 120px;
    border: 2px solid rgba(29, 161, 242, 0.1);
    border-radius: 12px;
    padding: 16px;
    font-size: 16px;
    resize: vertical;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.8);
}

.post-form textarea:focus {
    border-color: #1da1f2;
    box-shadow: 0 0 0 3px rgba(29, 161, 242, 0.1);
    background: #ffffff;
}

.post-form textarea::placeholder {
    color: #aab8c2;
}

.post-form-attachments {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.attachment-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background-color: #f5f8fa;
    border: 1px solid #e1e8ed;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    color: #657786;
    transition: all 0.2s;
}

.attachment-btn:hover {
    background-color: #e8f4fb;
    border-color: #1da1f2;
    color: #1da1f2;
}

.attachment-btn input[type="file"] {
    display: none;
}

.attachment-btn .icon {
    font-size: 16px;
}

.video-link-input {
    margin-top: 12px;
}

.video-link-input input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.video-link-input input:focus {
    border-color: #1da1f2;
}

.upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.preview-item {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f5f8fa;
    border: 1px solid #e1e8ed;
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-video {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.preview-video span:last-child {
    font-size: 10px;
    margin-top: 4px;
    color: #657786;
}

.preview-file {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.preview-file span:last-child {
    font-size: 10px;
    margin-top: 4px;
    color: #657786;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

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

#charCount {
    color: #657786;
    font-size: 14px;
}

.btn {
    padding: 12px 28px;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(29, 161, 242, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 161, 242, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #657786;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: rgba(29, 161, 242, 0.05);
    color: #1da1f2;
    border-color: rgba(29, 161, 242, 0.2);
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, #e0245e 0%, #c91a50 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(224, 36, 94, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(224, 36, 94, 0.4);
}

.post-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.post-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    border-color: rgba(29, 161, 242, 0.1);
}

.post-content {
    font-size: 16px;
    margin-bottom: 12px;
    word-wrap: break-word;
    white-space: normal;
    line-height: 1.6;
}

.post-topic-tag {
    margin-bottom: 12px;
}

.topic-link {
    display: inline-block;
    color: #1da1f2;
    font-size: 14px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(29, 161, 242, 0.1);
    transition: all 0.2s;
}

.topic-link:hover {
    background: rgba(29, 161, 242, 0.2);
    color: #1a8cd8;
}

.topic-tag {
    display: inline-block;
    background: #1da1f2;
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 14px;
    margin-right: 8px;
    margin-bottom: 8px;
    position: relative;
}

.topic-tag .topic-remove {
    margin-left: 6px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    opacity: 0.8;
}

.topic-tag .topic-remove:hover {
    opacity: 1;
}

.topic-dropdown {
    position: fixed;
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-width: 300px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.topic-option {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f3f4;
    font-size: 14px;
}

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

.topic-option:hover {
    background: #f5f8fa;
}

.topic-select {
    margin-bottom: 15px;
}

#selectedTopicsList {
    min-height: 24px;
}

.post-media {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.post-media {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.post-image {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    object-fit: contain;
}

.post-video {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
}

.post-video-embed {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.post-iframe {
    max-width: 100%;
    width: 560px;
    height: 315px;
    border-radius: 8px;
}

.video-link-fallback {
    display: block;
    text-decoration: none;
}

.video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    padding: 40px;
    color: white;
    transition: transform 0.2s, box-shadow 0.2s;
}

.video-placeholder:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.video-placeholder.iqiyi {
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
}

.video-placeholder.iqiyi:hover {
    box-shadow: 0 8px 25px rgba(229, 57, 53, 0.4);
}

.video-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.video-label {
    font-size: 16px;
    font-weight: 500;
}

.post-file {
    margin-bottom: 12px;
}

.file-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: #e8f4f8;
    color: #1da1f2;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.file-download:hover {
    background-color: #d0eaf5;
}

.file-icon {
    font-size: 18px;
}

.file-name {
    font-size: 14px;
}

.post-divider {
    border-top: 1px solid #e1e8ed;
    margin: 16px 0;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #657786;
    font-size: 14px;
}

.post-meta-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-meta-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-time {
}

.post-updated {
    color: #1da1f2;
    margin-right: 12px;
}

.post-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    background: none;
    border: none;
    color: #657786;
    cursor: pointer;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 16px;
    transition: all 0.2s;
}

.action-btn:hover {
    background-color: #f0f3f4;
    color: #1da1f2;
}

.action-btn.delete-btn:hover {
    background-color: #ffebee;
    color: #e0245e;
}

.empty-state {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    color: #657786;
}

.empty-state p {
    margin-bottom: 8px;
}

.comments-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e1e8ed;
}

.approved-comments {
    margin-bottom: 12px;
}

.comments-header {
    font-size: 14px;
    font-weight: 600;
    color: #657786;
    margin-bottom: 12px;
}

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

.comments-list-inline .comment-item {
    background-color: #f5f8fa;
    padding: 10px 12px;
    border-radius: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: baseline;
}

.comments-list-inline .comment-author {
    font-weight: 600;
    color: #1da1f2;
    font-size: 14px;
}

.comments-list-inline .comment-text {
    color: #333;
    font-size: 14px;
    line-height: 1.4;
    flex: 1;
}

.comments-list-inline .comment-time {
    font-size: 12px;
    color: #657786;
}

.comments-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e1e8ed;
}

.comments-page-info {
    font-size: 13px;
    color: #657786;
}

.comments-prev-btn,
.comments-next-btn {
    padding: 4px 12px;
    border: 1px solid #e1e8ed;
    background: #fff;
    color: #1da1f2;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.comments-prev-btn:hover:not(:disabled),
.comments-next-btn:hover {
    background: #1da1f2;
    color: #fff;
}

.comments-prev-btn:disabled,
.comments-next-btn:disabled {
    color: #aab8c2;
    cursor: not-allowed;
    background: #f5f8fa;
}

.comment-toggle-wrapper {
    margin-bottom: 8px;
}

.comment-form {
    background-color: #f5f8fa;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 8px;
    outline: none;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: #1da1f2;
}

.comment-form textarea {
    min-height: 60px;
    resize: vertical;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comment-item {
    background-color: #f5f8fa;
    padding: 12px;
    border-radius: 8px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.comment-name {
    font-weight: 600;
    color: #14171a;
}

.comment-time {
    font-size: 12px;
    color: #657786;
}

.comment-content {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.no-comments {
    color: #657786;
    font-size: 14px;
    text-align: center;
    padding: 12px;
}

.page-header {
    margin-bottom: 20px;
}

.page-header h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.page-header p {
    color: #657786;
}

.pending-count {
    background-color: #e0245e;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.comment-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    border-left: 4px solid #1da1f2;
}

.comment-card.pending {
    border-left-color: #e0245e;
    background-color: #fff5f5;
}

.comment-card.approved {
    border-left-color: #1da1f2;
}

.comment-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
}

.comment-email {
    color: #657786;
}

.comment-status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    background-color: #e8f4fb;
    color: #1da1f2;
}

.comment-card.pending .comment-status {
    background-color: #ffebee;
    color: #e0245e;
}

.comment-post {
    font-size: 13px;
    color: #657786;
    margin-bottom: 12px;
    padding: 8px;
    background-color: #f5f8fa;
    border-radius: 4px;
}

.comment-actions {
    display: flex;
    gap: 12px;
}

.footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e1e8ed;
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
}

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

.footer-copyright {
    color: #657786;
    font-size: 14px;
}

.footer-icp-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.footer-icp-wrapper:hover {
    border-color: #1da1f2;
    box-shadow: 0 2px 8px rgba(29, 161, 242, 0.1);
}

.footer-icp-icon {
    font-size: 14px;
    color: #657786;
}

.footer-icp-link {
    color: #1da1f2;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-icp-link:hover {
    color: #1a8cd8;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
}

.page-link {
    text-decoration: none;
    padding: 10px 18px;
    border: 1px solid rgba(29, 161, 242, 0.2);
    border-radius: 25px;
    color: #657786;
    font-weight: 500;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.page-link:hover {
    background-color: rgba(29, 161, 242, 0.1);
    color: #1da1f2;
    border-color: rgba(29, 161, 242, 0.4);
    transform: translateY(-1px);
}

.page-link.active {
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
    color: #ffffff;
    border-color: #1da1f2;
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.3);
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
}

.login-box {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.login-box h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1da1f2;
    text-align: center;
    margin-bottom: 8px;
}

.login-box p {
    text-align: center;
    color: #657786;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: #1da1f2;
}

.login-box .btn-primary {
    width: 100%;
    padding: 14px;
    font-size: 16px;
}

.error-message {
    background-color: #ffebee;
    color: #e0245e;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.success-message {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.login-links {
    margin-top: 20px;
    text-align: center;
}

.login-links a {
    color: #1da1f2;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.login-links a:hover {
    color: #0d8bd9;
    text-decoration: underline;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 24px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-content h3 {
    margin-bottom: 16px;
    font-size: 20px;
}

.modal-content textarea {
    width: 100%;
    min-height: 120px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    padding: 12px;
    font-size: 16px;
    resize: vertical;
    outline: none;
    margin-bottom: 16px;
    font-family: inherit;
}

.modal-content textarea:focus {
    border-color: #1da1f2;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 2000;
    cursor: zoom-out;
}

.lightbox.show {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: #1da1f2;
}

.post-image {
    cursor: zoom-in;
    transition: transform 0.2s;
}

.post-image:hover {
    transform: scale(1.02);
}

.topic-select {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.topic-select label {
    font-size: 14px;
    color: #657786;
}

.topic-select select {
    padding: 8px 12px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    outline: none;
    min-width: 150px;
}

.topic-select select:focus {
    border-color: #1da1f2;
}

.topic-count {
    font-size: 12px;
    color: #8899a6;
}

.sidebar-links a.active {
    background-color: rgba(29, 161, 242, 0.1);
    color: #1da1f2;
}

.topic-header {
    margin-bottom: 20px;
    padding: 15px 20px;
    background: rgba(29, 161, 242, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.topic-header h2 {
    font-size: 20px;
    color: #1da1f2;
    margin: 0;
}

.topic-header .topic-icon {
    font-size: 24px;
}

.mobile-profile-card {
    display: none;
}

@media (max-width: 768px) {
    .mobile-profile-card {
        display: block;
    }
    
    .sidebar .profile-card {
        display: none;
    }
    
    .container {
        padding: 0 12px;
    }
    
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
    }
    
    .header .container {
        height: 56px;
        flex-wrap: wrap;
        align-content: flex-start;
        padding-top: 8px;
    }
    
    .logo {
        font-size: 18px;
        flex-shrink: 0;
    }
    
    .menu-toggle {
        display: flex;
        flex-shrink: 0;
    }
    
    .nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        background: rgba(255, 255, 255, 0.98);
        border-radius: 12px;
        margin-top: 8px;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav.open {
        display: flex;
    }
    
    .nav-link {
        padding: 12px 16px;
        font-size: 15px;
        border-radius: 0;
        border-bottom: 1px solid #f0f3f4;
        text-align: left;
        flex-shrink: 0;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background-color: rgba(29, 161, 242, 0.08);
        transform: none;
    }
    
    .main {
        padding: 70px 0 12px;
    }
    
    .main-content {
        flex-direction: column;
        gap: 16px;
    }
    
    .main-column {
        max-width: 100%;
    }
    
    .sidebar {
        display: block;
        width: 100%;
    }
    
    .sidebar-card {
        padding: 16px;
        margin-bottom: 12px;
    }
    
    .profile-card {
        padding: 20px 16px;
    }
    
    .profile-avatar {
        width: 80px;
        height: 80px;
        margin: 0 auto 12px;
        border-width: 3px;
    }
    
    .profile-info h3 {
        font-size: 18px;
    }
    
    .profile-mood {
        margin-top: 12px;
    }
    
    .profile-mood p {
        font-size: 13px;
    }
    
    .sidebar-card h3 {
        font-size: 16px;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }
    
    .sidebar-stats {
        gap: 12px;
    }
    
    .stat-item {
        padding: 12px;
    }
    
    .stat-value {
        font-size: 22px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .sidebar-images {
        gap: 8px;
    }
    
    .post-form {
        padding: 16px;
    }
    
    .post-form textarea {
        min-height: 80px;
        font-size: 14px;
    }
    
    .post-form-attachments {
        flex-wrap: wrap;
    }
    
    .attachment-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .post-card {
        padding: 16px;
    }
    
    .post-content {
        font-size: 15px;
    }
    
    .post-image {
        max-height: 250px;
    }
    
    .post-video {
        max-height: 250px;
    }
    
    .post-iframe {
        height: 200px;
    }
    
    .post-meta {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .post-time {
        order: 1;
    }
    
    .post-edit {
        order: 2;
    }
    
    .post-updated {
        order: 3;
    }
    
    .comment-toggle-btn {
        order: 4;
    }
    
    .post-actions {
        order: 5;
        margin-top: 0;
    }
    
    .preview-item {
        width: 80px;
        height: 80px;
    }
    
    .login-box {
        padding: 24px;
        margin: 0 12px;
    }
    
    .modal-content {
        margin: 0 12px;
        padding: 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 8px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 900px;
    }
    
    .header .container {
        height: 60px;
    }
    
    .logo {
        font-size: 22px;
    }
    
    .nav {
        gap: 6px;
    }
    
    .nav-link {
        padding: 8px 14px;
        font-size: 14px;
    }
    
    .main-content {
        gap: 20px;
    }
    
    .main-column {
        max-width: 550px;
    }
    
    .sidebar {
        width: 280px;
    }
    
    .sidebar-card {
        padding: 20px;
    }
    
    .profile-card {
        padding: 24px 20px;
    }
    
    .profile-avatar {
        width: 100px;
        height: 100px;
        margin: 0 auto 14px;
    }
    
    .profile-info h3 {
        font-size: 19px;
    }
    
    .sidebar-card h3 {
        font-size: 17px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .post-form {
        padding: 20px;
    }
    
    .post-card {
        padding: 20px;
    }
    
    .post-image {
        max-height: 300px;
    }
    
    .post-video {
        max-height: 300px;
    }
}

@media (min-width: 1025px) {
    .post-form,
    .post-card {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .empty-state {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
}