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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #0a0a0a;
    color: #e5e5e5;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Animated Rainbow Background */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg,
        #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #ffeaa7, #dda0dd, #98d8c8, #f7dc6f);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: -2;
    opacity: 0.1;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Hero Cover Section */
.hero-cover {
    height: 280px;
    background: #0a0a0a;
    position: relative;
    margin-bottom: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 5px 0;
}

.hero-cover::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: 150%;
    max-width: 1200px;
    background: url('cover.png') center top;
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 2;
    aspect-ratio: 851/315;
}

@keyframes sideGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.05);
    z-index: 1;
}

@keyframes coverGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.cover-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.cover-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
    letter-spacing: 2px;
    line-height: 1.2;
}

.cover-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    color: #f0f0f0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

/* Navigation */
.navbar {
    background: rgba(42, 42, 42, 0.95);
    border-bottom: 1px solid #404040;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    font-size: 24px;
    font-weight: 700;
    color: #f093fb;
    margin-bottom: 4px;
    text-shadow: 0 0 10px rgba(240, 147, 251, 0.3);
}

.nav-subtitle {
    font-size: 14px;
    color: #9ca3af;
    font-weight: 400;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.creator-card {
    background: rgba(42, 42, 42, 0.9);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #404040;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.creator-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    background-size: 300% 300%;
    animation: avatarGradient 10s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    box-shadow: 0 0 20px rgba(240, 147, 251, 0.4);
}

@keyframes avatarGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.creator-name {
    font-size: 20px;
    font-weight: 600;
    color: #e5e5e5;
    margin-bottom: 8px;
}

.creator-description {
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 20px;
    line-height: 1.5;
}

.creator-stats {
    display: flex;
    gap: 20px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #e5e5e5;
}

.stat-label {
    font-size: 12px;
    color: #9ca3af;
}

.visitor-stat .stat-number {
    font-size: 18px;
    font-weight: 600;
}

.visitor-stat .stat-label {
    font-size: 12px;
}

.create-post-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.create-post-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;
}

.create-post-btn:hover::before {
    left: 100%;
}

.create-post-btn:hover {
    background: linear-gradient(135deg, #764ba2, #f093fb);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240, 147, 251, 0.5);
}

/* Main Content */
.main-content {
    min-height: 600px;
}

.posts-feed {
    background: rgba(42, 42, 42, 0.9);
    border-radius: 12px;
    border: 1px solid #404040;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.feed-header {
    padding: 20px 24px;
    border-bottom: 1px solid #404040;
    background: #333333;
}

.feed-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #e5e5e5;
}

.posts-container {
    padding: 0;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: rgba(42, 42, 42, 0.95);
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid #404040;
    backdrop-filter: blur(15px);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 16px;
    border-bottom: 1px solid #404040;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #e5e5e5;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #e5e5e5;
}

/* Form */
.post-form {
    padding: 24px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #d1d5db;
    margin-bottom: 8px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #4b5563;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    background: #1f2937;
    color: #e5e5e5;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-help {
    display: block;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
}

.media-upload {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.media-upload input[type="file"] {
    display: none;
}

.file-upload-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #374151;
    border: 1px solid #4b5563;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #d1d5db;
    transition: all 0.2s;
}

.file-upload-btn:hover {
    background: #4b5563;
    border-color: #6b7280;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid #404040;
}

.cancel-btn {
    padding: 12px 24px;
    background: #374151;
    border: 1px solid #4b5563;
    border-radius: 8px;
    color: #d1d5db;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.cancel-btn:hover {
    background: #4b5563;
}

.submit-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.submit-btn:hover {
    background: linear-gradient(135deg, #764ba2, #f093fb);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(240, 147, 251, 0.4);
}

/* Posts */
.post {
    border-bottom: 1px solid #404040;
    padding: 24px;
    transition: background-color 0.2s;
}

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

.post:hover {
    background: #333333;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.post-title {
    font-size: 18px;
    font-weight: 600;
    color: #e5e5e5;
    margin-bottom: 8px;
    line-height: 1.4;
}

.post-meta {
    font-size: 14px;
    color: #9ca3af;
}

.post-content {
    font-size: 16px;
    color: #d1d5db;
    line-height: 1.6;
    margin-bottom: 20px;
    white-space: pre-wrap;
}

.post-media {
    margin-bottom: 20px;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.media-item {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #404040;
}

.media-item img, .media-item video {
    width: 100%;
    height: auto;
    display: block;
}

.media-item audio {
    width: 100%;
    padding: 8px;
}

.embed-container {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #404040;
    margin-top: 16px;
}

.embed-container iframe {
    width: 100%;
    height: 315px;
    border: none;
}

.delete-btn {
    background: #4b1f1f;
    border: 1px solid #7f1d1d;
    color: #fca5a5;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.delete-btn:hover {
    background: #7f1d1d;
    color: #f87171;
}

.no-posts {
    text-align: center;
    padding: 60px 24px;
    color: #9ca3af;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-cover {
        height: 180px;
        padding: 2px 0;
    }

    .hero-cover::after {
        top: 2px;
        height: 131%;
        max-width: 95%;
    }

    .nav-container {
        padding: 12px 16px;
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .nav-auth {
        align-self: flex-end;
    }

    .nav-login-modal {
        right: 16px;
        min-width: 200px;
    }

    .container {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 16px;
    }

    .sidebar {
        order: 1;
    }

    .main-content {
        order: 2;
    }

    .creator-card {
        padding: 16px;
    }

    .creator-avatar {
        width: 60px;
        height: 60px;
        font-size: 12px;
    }

    .modal-content {
        width: 95%;
        margin: 16px;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .media-upload {
        flex-direction: column;
    }

    .media-grid {
        grid-template-columns: 1fr;
    }

    .embed-container iframe {
        height: 200px;
    }
}

/* Tags and Filter Styles */
.tags-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.predefined-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-btn {
    background: transparent;
    border: 2px solid #404040;
    color: #e5e5e5;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tag-btn:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.tag-btn.selected {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.custom-tag-input {
    display: flex;
    gap: 8px;
    align-items: center;
}

#customTag {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid #404040;
    border-radius: 8px;
    background: #1a1a1a;
    color: #e5e5e5;
    font-size: 0.9rem;
}

.add-tag-btn {
    background: #667eea;
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.3s ease;
}

.add-tag-btn:hover {
    background: #5a6fd8;
}

.selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.selected-tag {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.selected-tag .remove-tag {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
    margin: 0;
}

/* Filter Container */
.filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tag {
    background: transparent;
    border: 2px solid #404040;
    color: #e5e5e5;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tag:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.filter-tag.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

#searchInput {
    padding: 8px 12px;
    border: 2px solid #404040;
    border-radius: 20px;
    background: #1a1a1a;
    color: #e5e5e5;
    font-size: 0.9rem;
    width: 200px;
    transition: border-color 0.3s ease;
}

#searchInput:focus {
    outline: none;
    border-color: #667eea;
}

#searchBtn {
    background: none;
    border: none;
    color: #e5e5e5;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
    transition: transform 0.2s ease;
}

#searchBtn:hover {
    transform: scale(1.1);
}

/* Post Tags Display */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.post-tag {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* No Posts / No Results Styles */
.no-posts {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
    background: rgba(26, 26, 26, 0.5);
    border-radius: 12px;
    border: 2px dashed #404040;
}

.no-posts p {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.no-posts small {
    font-size: 0.9rem;
    color: #6b7280;
}

/* Responsive Filter Container */
@media (max-width: 768px) {
    .filter-container {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .filter-tags {
        justify-content: center;
    }

    .search-box {
        justify-content: center;
    }

    #searchInput {
        width: 100%;
        max-width: 300px;
    }
}

/* Post Interactions Styles */
.post-interactions {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #404040;
}

.interaction-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 2px solid #404040;
    color: #e5e5e5;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.interaction-btn:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.like-btn:hover {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.like-btn:hover .like-icon {
    animation: heartBeat 0.6s ease-in-out;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1.2); }
    75% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.like-count {
    font-weight: 500;
    min-width: 20px;
    text-align: center;
}

.like-icon, .share-icon {
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

/* Share Modal Styles */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.share-modal-content {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    border: 2px solid #404040;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.share-modal-header h3 {
    color: #e5e5e5;
    font-size: 1.2rem;
    margin: 0;
}

.share-close-btn {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.3s ease;
}

.share-close-btn:hover {
    color: #e5e5e5;
}

.share-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.share-option {
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: 2px solid #404040;
    color: #e5e5e5;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-align: left;
}

.share-option:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(4px);
}

/* Mobile Responsive for Interactions */
@media (max-width: 768px) {
    .post-interactions {
        gap: 12px;
    }

    .interaction-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .share-modal-content {
        padding: 20px;
    }
}

/* Update Notification Styles */
.update-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    z-index: 10000;
    animation: slideInRight 0.5s ease-out;
    max-width: 300px;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.update-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.update-icon {
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.update-text {
    font-weight: 500;
    font-size: 0.9rem;
}

/* Mobile Update Notification */
@media (max-width: 768px) {
    .update-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        text-align: center;
    }
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #1a1a1a;
    border: 2px solid #404040;
    border-radius: 8px;
    padding: 12px 16px;
    z-index: 10001;
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-success {
    border-color: #10b981;
    background: linear-gradient(135deg, #065f46 0%, #10b981 100%);
}

.notification-error {
    border-color: #ef4444;
    background: linear-gradient(135deg, #7f1d1d 0%, #ef4444 100%);
}

.notification-info {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

.notification-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.notification-text {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Loading Indicator Styles */
.loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10002;
    backdrop-filter: blur(5px);
}

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

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #404040;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #e5e5e5;
    font-size: 1rem;
    font-weight: 500;
}

/* System Status Styles */
.system-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 8px 12px;
    background: rgba(42, 42, 42, 0.8);
    border-radius: 8px;
    border: 1px solid #404040;
    font-size: 0.8rem;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6b7280;
    animation: pulse 2s infinite;
}

.status-indicator.online {
    background: #10b981;
}

.status-indicator.offline {
    background: #f59e0b;
}

.status-indicator.error {
    background: #ef4444;
}

.status-text {
    color: #9ca3af;
    font-weight: 500;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Like button animation */
.interaction-btn.liked {
    animation: likeAnimation 0.3s ease-in-out;
    transform: scale(1.1);
}

@keyframes likeAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1.1); }
}

/* Rich Editor Styles */
.editor-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: #374151;
    border: 1px solid #4b5563;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    flex-wrap: wrap;
}

.toolbar-btn {
    background: none;
    border: 1px solid transparent;
    color: #d1d5db;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.toolbar-btn:hover {
    background: #4b5563;
    border-color: #6b7280;
}

.toolbar-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.toolbar-separator {
    width: 1px;
    height: 20px;
    background: #4b5563;
    margin: 0 4px;
}

.rich-editor {
    min-height: 200px;
    padding: 16px;
    background: #1f2937;
    color: #e5e5e5;
    border: 1px solid #4b5563;
    border-radius: 0 0 8px 8px;
    font-size: 16px;
    line-height: 1.6;
    outline: none;
    overflow-y: auto;
    max-height: 400px;
}

.rich-editor:focus {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

.rich-editor[placeholder]:empty::before {
    content: attr(placeholder);
    color: #6b7280;
    pointer-events: none;
}

.rich-editor img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 8px 0;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.rich-editor img:hover {
    border-color: #ff6b6b;
}

.rich-editor img.selected {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.3);
}

.rich-editor a {
    color: #60a5fa;
    text-decoration: underline;
}

.rich-editor a:hover {
    color: #93c5fd;
}

.rich-editor ul, .rich-editor ol {
    padding-left: 24px;
    margin: 8px 0;
}

.rich-editor li {
    margin: 4px 0;
}

.rich-editor strong {
    font-weight: 600;
}

.rich-editor em {
    font-style: italic;
}

.rich-editor u {
    text-decoration: underline;
}

.rich-editor p {
    margin: 8px 0;
}

.rich-editor br {
    display: block;
    content: "";
    margin: 4px 0;
}

/* Link Dialog */
.link-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #2a2a2a;
    border: 1px solid #404040;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    min-width: 300px;
}

.link-dialog input {
    width: 100%;
    padding: 8px 12px;
    margin: 8px 0;
    background: #1f2937;
    border: 1px solid #4b5563;
    border-radius: 4px;
    color: #e5e5e5;
}

.link-dialog-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 12px;
}

.link-dialog button {
    padding: 6px 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 12px;
}

.link-dialog .primary-btn {
    background: #ff6b6b;
    color: white;
}

.link-dialog .secondary-btn {
    background: #4b5563;
    color: #d1d5db;
}

/* Navigation Auth Styles */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-login-btn, .nav-logout-btn {
    background: none;
    border: 1px solid rgba(240, 147, 251, 0.3);
    color: #d1d5db;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.nav-login-btn:hover {
    background: rgba(240, 147, 251, 0.1);
    border-color: #f093fb;
    color: #f093fb;
}

.nav-logout-btn {
    border-color: rgba(220, 38, 38, 0.3);
    color: #fca5a5;
}

.nav-logout-btn:hover {
    background: rgba(220, 38, 38, 0.1);
    border-color: #dc2626;
    color: #dc2626;
}

.nav-login-modal {
    position: absolute;
    top: 100%;
    right: 24px;
    background: rgba(42, 42, 42, 0.95);
    border: 1px solid #404040;
    border-radius: 8px;
    padding: 16px;
    min-width: 250px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.nav-login-card h4 {
    color: #e5e5e5;
    margin-bottom: 12px;
    font-size: 14px;
    text-align: center;
}

.nav-login-card input {
    width: 100%;
    padding: 8px 12px;
    background: #1f2937;
    border: 1px solid #4b5563;
    border-radius: 4px;
    color: #e5e5e5;
    font-size: 14px;
    margin-bottom: 12px;
}

.nav-login-card input:focus {
    outline: none;
    border-color: #f093fb;
    box-shadow: 0 0 0 2px rgba(240, 147, 251, 0.2);
}

.nav-login-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.nav-cancel-btn, .nav-submit-btn {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.nav-cancel-btn {
    background: #4b5563;
    color: #d1d5db;
}

.nav-cancel-btn:hover {
    background: #6b7280;
}

.nav-submit-btn {
    background: #f093fb;
    color: white;
}

.nav-submit-btn:hover {
    background: #e879f9;
}

/* Login System Styles */
.login-section {
    margin-top: 16px;
}

.login-card {
    background: rgba(42, 42, 42, 0.9);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #404040;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.login-card h3 {
    color: #e5e5e5;
    margin-bottom: 16px;
    font-size: 16px;
    text-align: center;
}

.logout-btn {
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-top: 16px;
    width: 100%;
}

.logout-btn:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

.create-post-btn.disabled {
    background: #4b5563;
    color: #9ca3af;
    cursor: not-allowed;
    pointer-events: none;
}

.create-post-btn.disabled:hover {
    background: #4b5563;
    transform: none;
    box-shadow: none;
}

/* Loading animation */
.loading {
    display: inline-block;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}