/* Article Container */
.article-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Mobile Styles */
@media (max-width: 768px) {
    body {
        padding-top: 60px !important;
        margin-top: 0 !important;
    }
    
    .article-container {
        grid-template-columns: 1fr;
        padding: 5px;
        margin-top: 0;
        gap: 10px;
    }
    
    .menu-toggle, 
    .mobile-search-toggle {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 1001 !important;
        position: relative !important;
    }
    
    header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
        width: 100% !important;
        background-color: #222 !important;
        height: 60px !important;
        margin: 0 !important;
    }
    
    .logo {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 1002 !important;
    }
    
    .mobile-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background-color: rgba(0, 0, 0, 0.5) !important;
        z-index: 998 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: opacity 0.3s ease, visibility 0.3s ease !important;
    }
    
    .mobile-overlay.active {
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .article-header {
        position: static !important;
        top: auto !important;
        z-index: auto !important;
        background: transparent !important;
        box-shadow: none !important;
        width: 100% !important;
        padding: 0 !important;
        margin-bottom: 0 !important;
    }
    
    .article-detail {
        padding: 0;
        margin-bottom: 0;
        margin-top: 10px;
        background-color: transparent;
        box-shadow: none;
    }
    
    .article-title {
        font-size: 1.5em;
        margin-top: 0;
        margin-bottom: 5px;
        line-height: 1.3;
        word-break: break-word;
    }
    
    .article-meta {
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    .article-featured-image-fixed,
    .article-featured-image,
    .article-video {
        margin-top: 0;
        margin-bottom: 0;
    }
    
    .article-banner {
        margin-top: 0;
        margin-bottom: 0;
    }
    
    .article-content,
    .article-content-fixed {
        margin-top: 5px;
        margin-bottom: 5px;
        background-color: #fff;
        border-radius: 8px;
        padding: 10px;
    }
    
    .article-share-section,
    .article-share-section-fixed {
        padding-top: 5px;
        margin-top: 5px;
        margin-bottom: 10px;
        background-color: #fff;
        border-radius: 8px;
        padding: 10px;
    }
    
    .share-buttons {
        justify-content: flex-start;
    }
    
    .share-button {
        font-size: 0.9em;
    }
    
    .share-button i {
        margin-right: 5px;
    }
    
    .share-button span {
        font-size: 0.85em;
    }
    
    .comments-section {
        padding: 10px;
        margin-top: 0;
    }
    
    .comment-form textarea {
        min-height: 80px;
    }
}

/* Article Main */
.article-main {
    min-width: 0;
}

.article-detail {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

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

.article-meta {
    margin-bottom: 10px;
    color: #777;
    font-size: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.article-meta span {
    margin-right: 15px;
}

.article-author {
    color: #555;
    font-weight: 500;
}

.article-author i {
    margin-right: 5px;
    color: #777;
}

.article-author a {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.article-author a:hover {
    color: #667eea;
    text-decoration: underline;
}

.video-badge,
.translation-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1;
}

.video-badge {
    background-color: #2e7d32;
    color: #fff;
}

.translation-badge {
    background-color: #1976d2;
    color: #fff;
}

.translation-badge a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px dotted #fff;
    margin-left: 4px;
}

.translation-badge a:hover {
    border-bottom: 1px solid #fff;
}

.video-badge i,
.translation-badge i {
    margin-right: 6px;
}

.article-title {
    font-size: 2em;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.article-featured-image {
    margin-bottom: 20px;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.article-content {
    line-height: 1.6;
    font-size: 1.1em;
    margin-bottom: 20px;
}

/* Sidebar Styles */
.article-sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
}

.sidebar-section {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.sidebar-section h3 {
    font-size: 1.2em;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.sidebar-articles {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-article {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 10px;
}

.sidebar-article img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
}

.sidebar-article-content h4 {
    font-size: 0.9em;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.sidebar-article-content h4 a {
    color: #333;
    text-decoration: none;
}

.sidebar-article-content h4 a:hover {
    color: #1976d2;
}

.sidebar-article-content .views,
.sidebar-article-content .time {
    font-size: 0.8em;
    color: #777;
}

/* Comments Section */
.comments-section {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.comment-instructions {
    background-color: #f8f8f8;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #64b5f6;
    margin-bottom: 20px;
}

.comment-instructions p {
    margin: 0;
    color: #555;
    font-size: 0.9em;
    line-height: 1.4;
}

.comments-disabled-message {
    background-color: #f8f8f8;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #e57373;
    margin-bottom: 20px;
}

.comments-disabled-message p {
    margin: 0;
    color: #d32f2f;
    font-weight: 500;
}

.comment-form input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
}

.comment-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
}

.comment-form button {
    background: #1976d2;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.comment-form button:hover {
    background: #1565c0;
}

.comments-list {
    margin-top: 20px;
}

.comment {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.comment-meta {
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #777;
}

.comment-content {
    line-height: 1.4;
}

.reply-button {
    background: #f0f0f0;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    margin-top: 10px;
    cursor: pointer;
}

.reply-button:hover {
    background: #e0e0e0;
}

.reply-form {
    margin-top: 10px;
}

.reply-form input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* Article Banner */
.article-banner {
    margin-top: 10px;
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
}

.article-banner img {
    width: 100%;
    max-height: 120px;
    object-fit: cover;
}

.article-banner a {
    display: block;
}

/* Article Tags */
.article-tags {
    margin-bottom: 20px;
}

.article-tags .tag {
    display: inline-block;
    margin-right: 8px;
    margin-bottom: 8px;
    padding: 4px 10px;
    background-color: #f5f5f5;
    border-radius: 20px;
    color: #555;
    font-size: 0.85em;
    text-decoration: none;
}

.article-tags .tag:hover {
    background-color: #eaeaea;
}

/* Article Share Section */
.article-share-section {
    padding-top: 20px;
    border-top: 1px solid #eee;
    background-color: #fff;
    margin-top: 20px;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-start;
}

.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9em;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.share-button i {
    margin-right: 6px;
    font-size: 1.1em;
}

.share-button span {
    font-size: 0.9em;
    font-weight: 500;
}

.share-button.facebook {
    background-color: #1877f2;
    color: white;
}

.share-button.twitter {
    background-color: #000000;
    color: white;
}

.share-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.share-button:active {
    transform: translateY(0);
}

/* Remove the divider between buttons */
.share-button:not(:last-child)::after {
    display: none;
}

/* Sidebar Banner */
.sidebar-banner {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.sidebar-banner img,
.sidebar-banner video {
    width: 100%;
    height: auto;
    display: block;
    max-height: 250px;
    object-fit: cover;
}

.sidebar-banner a {
    display: block;
}

/* Fix for main menu in article view */
@media (min-width: 768px) {
    .main-menu {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        background-color: #222 !important;
        width: 100% !important;
        z-index: 100 !important;
    }
    
    .main-menu-wrapper {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0 !important;
    }

    .nav-items {
        display: flex !important;
    }
    
    .nav-item {
        display: inline-block !important;
        position: relative !important;
        margin: 0 !important;
    }
    
    .nav-link {
        display: flex !important;
        align-items: center !important;
        padding: 15px !important;
        color: white !important;
    }
}

/* Fixed comment section styles for desktop */
.comments-section-fixed {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.comment-instructions-fixed {
    background-color: #f8f8f8;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #64b5f6;
    margin-bottom: 20px;
}

.comment-instructions-fixed p {
    margin: 0;
    color: #555;
    font-size: 0.9em;
    line-height: 1.4;
}

.comments-disabled-message-fixed {
    background-color: #f8f8f8;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #e57373;
    margin-bottom: 20px;
}

.comments-disabled-message-fixed p {
    margin: 0;
    color: #d32f2f;
    font-weight: 500;
}

.comment-form-fixed input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
}

.comment-form-fixed textarea {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
}

.comment-form-fixed button {
    background: #1976d2;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.comment-form-fixed button:hover {
    background: #1565c0;
}



.reply-form-fixed input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
} 