.page-wrapper {
    padding: 20px 0;
    background: #b855d4;
}

.content-area {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.layout-container {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.primary-content {
    flex: 1;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(184, 85, 212, 0.3);
    overflow: hidden;
    border: 1px solid #b855d4;
}

.post-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid rgba(184, 85, 212, 0.3);
}

.post-title {
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.4;
    margin-bottom: 20px;
}

.post-metadata {
    display: flex;
    align-items: center;
    gap: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 15px;
}

.post-metadata i {
    color: #b855d4;
    margin-right: 5px;
}

.post-content {
    padding: 30px;
    line-height: 1.8;
    color: #ffffff;
}

.post-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #b855d4;
    margin: 30px 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #b855d4;
}

.post-content h2 {
    font-size: 26px;
    font-weight: 600;
    color: #b855d4;
    margin: 30px 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #b855d4;
}

.post-content p {
    margin-bottom: 16px;
    text-align: justify;
}

.post-content ul,
.post-content ol {
    margin: 16px 0;
    padding-left: 30px;
}

.post-content li {
    margin-bottom: 8px;
}

.post-content pre {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(184, 85, 212, 0.3);
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.5;
}

.post-content code {
    background: rgba(184, 85, 212, 0.2);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 13px;
    color: #b855d4;
}

.post-content pre code {
    background: none;
    padding: 0;
    color: #ffffff;
}

.post-footer {
    padding: 20px 30px;
    border-top: 1px solid rgba(184, 85, 212, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.interaction-buttons {
    display: flex;
    gap: 15px;
}

.interact-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #b855d4;
    border-radius: 20px;
    background: rgba(184, 85, 212, 0.2);
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.interact-btn:hover {
    background: #b855d4;
    color: #ffffff;
    border-color: #b855d4;
}

.interact-btn.liked {
    background: #b855d4;
    color: #ffffff;
    border-color: #b855d4;
}

.discussion-area {
    margin-top: 30px;
    padding: 30px;
    border-top: 1px solid rgba(184, 85, 212, 0.3);
}

.discussion-title {
    font-size: 20px;
    font-weight: 600;
    color: #b855d4;
    margin-bottom: 20px;
}

.comment-composer {
    background: rgba(184, 85, 212, 0.1);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid rgba(184, 85, 212, 0.3);
}

.comment-input {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid rgba(184, 85, 212, 0.3);
    border-radius: 6px;
    resize: vertical;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.comment-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.submit-comment {
    background: #b855d4;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.submit-comment:hover {
    background: #a044b8;
}

.comment-list {
    margin: 20px 0;
}

.content-section {
    margin-bottom: 25px;
    padding: 0 25px;
}

.section-heading {
    font-size: 16px;
    font-weight: 600;
    color: #b855d4;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #b855d4;
    display: inline-block;
}

.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.recommendation-card {
    background: rgba(184, 85, 212, 0.1);
    padding: 15px 10px;
    border-radius: 6px;
    text-align: center;
    border: 1px solid rgba(184, 85, 212, 0.3);
    text-decoration: none;
    color: #ffffff;
    transition: all 0.2s ease;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    max-height: 4.5em;
    word-wrap: break-word;
}

.recommendation-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(184, 85, 212, 0.3);
    color: #ffffff;
    border-color: #b855d4;
    background: rgba(184, 85, 212, 0.2);
}

.recommendation-card div {
    font-size: 12px;
}

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

.sidebar-container {
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
}

.sidebar-container::-webkit-scrollbar {
    width: 8px;
}

.sidebar-container::-webkit-scrollbar-track {
    background: rgba(184, 85, 212, 0.1);
    border-radius: 4px;
    margin: 2px;
}

.sidebar-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #b855d4 0%, #d084ff 100%);
    border-radius: 4px;
    border: 1px solid rgba(184, 85, 212, 0.2);
    box-shadow: 0 2px 4px rgba(184, 85, 212, 0.2);
}

.sidebar-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #a044b8 0%, #b855d4 100%);
    box-shadow: 0 2px 8px rgba(184, 85, 212, 0.4);
}

.sidebar-container::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, #8e3a9f 0%, #a044b8 100%);
}

.sidebar-container::-webkit-scrollbar-corner {
    background: rgba(184, 85, 212, 0.1);
}

.widget-card {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(184, 85, 212, 0.3);
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid #b855d4;
}

.widget-header {
    padding: 20px 20px 15px;
    border-bottom: 1px solid rgba(184, 85, 212, 0.3);
    background: linear-gradient(135deg, #b855d4 0%, #d084ff 100%);
}

.widget-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.creator-profile {
    padding: 25px 20px;
    text-align: center;
}

.creator-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 3px solid #b855d4;
}

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

.creator-bio {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.metrics-panel {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.metric-item {
    text-align: center;
    background: rgba(184, 85, 212, 0.1);
    padding: 10px;
    border-radius: 6px;
    border: 1px solid rgba(184, 85, 212, 0.3);
    transition: all 0.3s ease;
}

.metric-item:hover {
    background: rgba(184, 85, 212, 0.2);
    transform: translateY(-2px);
}

.metric-value {
    font-size: 18px;
    font-weight: 600;
    color: #b855d4;
    display: block;
}

.metric-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 2px;
}

.action-center {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-button {
    padding: 8px 10px;
    border: 1px solid #b855d4;
    border-radius: 20px;
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s ease;
    background: rgba(184, 85, 212, 0.2);
    display: flex;
    align-items: center;
    gap: 4px;
}

.action-button:hover {
    background: #b855d4;
    color: #ffffff;
    border-color: #b855d4;
}

.featured-articles {
    padding: 0;
}

.featured-item {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(184, 85, 212, 0.2);
    transition: background 0.3s ease;
}

.featured-item:hover {
    background: rgba(184, 85, 212, 0.1);
}

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

.featured-link {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    line-height: 1.4;
}

.featured-link:hover {
    color: #b855d4;
}

.featured-meta {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
}

.quick-nav {
    padding: 20px;
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.nav-item2 {
    background: rgba(184, 85, 212, 0.1);
    border: 1px solid rgba(184, 85, 212, 0.2);
    padding: 12px 8px;
    border-radius: 6px;
    text-align: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 11px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.nav-item2:hover {
    background: rgba(184, 85, 212, 0.2);
    transform: translateY(-2px);
    border-color: #b855d4;
}

.nav-item2 i {
    font-size: 16px;
    color: #b855d4;
}

.share-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(184, 85, 212, 0.5);
    padding: 30px;
    z-index: 10000;
    min-width: 320px;
    border: 1px solid #b855d4;
}

.share-popup.show {
    display: block;
}

.share-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.share-overlay.show {
    display: block;
}

.share-title {
    font-size: 18px;
    font-weight: 600;
    color: #b855d4;
    margin-bottom: 20px;
    text-align: center;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid #b855d4;
    border-radius: 8px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgba(184, 85, 212, 0.2);
}

.share-btn:hover {
    background: #b855d4;
    border-color: #b855d4;
    color: #ffffff;
}

.share-btn i {
    font-size: 18px;
}

.share-url {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(184, 85, 212, 0.3);
    border-radius: 6px;
    padding: 12px;
    font-size: 13px;
    color: #ffffff;
    margin-bottom: 15px;
    word-break: break-all;
}

.share-copy {
    width: 100%;
    background: #b855d4;
    color: #ffffff;
    border: none;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.share-copy:hover {
    background: #a044b8;
}

.share-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 5px;
}

.share-close:hover {
    color: #b855d4;
}

@media (max-width: 768px) {
    .layout-container {
        flex-direction: column;
        padding: 0 15px;
        gap: 20px;
    }

    .secondary-sidebar {
        width: 100%;
        order: 2;
    }

    .sidebar-container {
        position: static;
        max-height: none;
        overflow-y: visible;
        padding-right: 0;
    }

    .post-header {
        padding: 20px 20px 15px;
    }

    .post-title {
        font-size: 22px;
    }

    .post-content {
        padding: 20px;
    }

    .post-footer {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }

    .interaction-buttons {
        justify-content: center;
        width: 100%;
    }

    .interact-btn {
        flex: 1;
        justify-content: center;
        max-width: 100px;
    }

    .discussion-area {
        padding: 20px;
    }

    .metrics-panel {
        margin-bottom: 15px;
    }

    .share-popup {
        min-width: 280px;
        margin: 0 20px;
        max-width: calc(100vw - 40px);
    }

    .share-buttons {
        grid-template-columns: 1fr;
    }

    .post-metadata {
        flex-wrap: wrap;
        gap: 10px;
    }

    .comment-input {
        min-height: 80px;
    }

    .nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
