/**
 * Desktop Styles for Forum Theme
 * PC端专用样式 (min-width: 769px)
 * 
 * @package Forum_Theme
 */

/* ==========================================================================
   Desktop Layout
   ========================================================================== */

.main-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 30px 20px;
    display: flex;
    gap: 30px;
    flex: 1;
    width: 100%;
}

.content-area {
    flex: 1;
    min-width: 0;
}

.widget-area {
    width: var(--sidebar-width);
    flex-shrink: 0;
}

/* ==========================================================================
   Desktop Navigation - 桌面端导航在 header-actions.css
   ========================================================================== */

/* ==========================================================================
   Desktop Header
   ========================================================================== */

/* 导航栏样式和动画在 top-notice.css 中统一管理 */

.header-inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-description {
    font-size: 14px;
    color: var(--text-light);
    margin: 0 0 0 15px;
}

/* ==========================================================================
   Desktop Post Layout
   ========================================================================== */

.forum-post-item {
    display: flex;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
    gap: 15px;
}

.post-avatar {
    flex-shrink: 0;
}

.post-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.post-content-wrapper {
    flex: 1;
    min-width: 0;
}

/* ==========================================================================
   Desktop Comment Layout
   ========================================================================== */

.comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-content {
    margin-left: 52px;
    line-height: 1.6;
}

.comment-reply-link {
    display: inline-block;
    margin-left: 52px;
    margin-top: 10px;
    padding: 6px 14px;
    background: var(--primary-color);
    color: #ffffff;
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: var(--transition);
}

.children {
    list-style: none;
    margin-left: 40px;
    margin-top: 15px;
}

/* ==========================================================================
   Desktop Footer Layout
   ========================================================================== */

.footer-widget-area {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

/* ==========================================================================
   Desktop Hover Effects
   ========================================================================== */

.forum-post-item:hover {
    background: var(--hover-color);
    transform: translateX(3px);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.post-category:hover {
    transform: scale(1.05);
}

.share-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* ==========================================================================
   Desktop Scroll Effects
   ========================================================================== */

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
}

/* ==========================================================================
   Desktop Reading Progress
   ========================================================================== */

.reading-progress {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(0, 0, 0, 0.05);
    z-index: 999;
}

/* ==========================================================================
   Desktop Notification
   ========================================================================== */

.notification {
    position: fixed;
    top: 90px;
    right: 20px;
    max-width: 350px;
}

/* ==========================================================================
   Desktop Forms
   ========================================================================== */

.comment-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.comment-form-comment,
.form-submit {
    grid-column: 1 / -1;
}

/* ==========================================================================
   Desktop Typography
   ========================================================================== */

.single-post-title {
    font-size: 32px;
}

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

.comments-title {
    font-size: 24px;
}

/* ==========================================================================
   Desktop Tables
   ========================================================================== */

.single-post-content table {
    width: 100%;
    border-collapse: collapse;
}

/* ==========================================================================
   Desktop Utilities
   ========================================================================== */

.desktop-only {
    display: block !important;
}

.mobile-only {
    display: none !important;
}

/* ==========================================================================
   Desktop Post Navigation
   ========================================================================== */

.post-navigation {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.post-nav-link {
    flex: 1;
    padding: 15px 20px;
    background: var(--hover-color);
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.post-nav-link:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ==========================================================================
   Desktop Sidebar
   ========================================================================== */

.widget {
    position: sticky;
    top: calc(var(--header-height) + 20px);
}

/* ==========================================================================
   Large Desktop (1280px+)
   ========================================================================== */

@media (min-width: 1280px) {
    .header-inner {
        padding: 0 30px;
    }
    
    .main-content {
        padding: 1px 20px;
    }
    
    .single-post-container {
        padding: 1px;
    }
}

/* ==========================================================================
   Medium Desktop (1024px - 1279px)
   ========================================================================== */

@media (min-width: 1024px) and (max-width: 1279px) {
    .widget-area {
        width: 280px;
    }
    
    .main-navigation a {
        padding: 8px 12px;
        font-size: 15px;
    }
}

