/* News Detail Page */

.news-detail-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Breadcrumb */
.news-breadcrumb {
display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

.news-breadcrumb a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.news-breadcrumb a:hover {
    color: var(--primary);
}

.news-detail-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
}

/* Main Content */
.news-detail-main {
    background: white;
    border-radius: 0.75rem;
    padding: 3rem;
    border: 1px solid #e5e7eb;
}

/* Header */
.news-detail-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.news-detail-category {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: white;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.news-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
    margin: 0 0 1.5rem 0;
}

.news-detail-meta {
    display: flex;
    justify-content: space-between;
  align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.news-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.news-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.news-author-avatar.large {
    width: 80px;
    height: 80px;
    font-size: 2rem;
}

.news-author-avatar.small {
  width: 32px;
    height: 32px;
    font-size: 0.875rem;
}

.news-author-info {
    display: flex;
    flex-direction: column;
}

.news-author-name {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
}

.news-author-role {
  font-size: 0.875rem;
    color: #6b7280;
}

.news-detail-stats {
    display: flex;
 gap: 1.5rem;
}

.news-stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
  color: #6b7280;
}

.news-stat-item .material-icons {
    font-size: 1.125rem;
}

/* Content Layouts */
.news-detail-content {
    margin-bottom: 2rem;
}

.news-detail-content.layout-imagetop {
    display: flex;
    flex-direction: column;
}

.news-detail-content.layout-imageleft,
.news-detail-content.layout-imageright {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.news-detail-content.layout-imageright {
    grid-template-columns: 1fr 1fr;
}

.news-detail-content.layout-imageright .news-detail-image {
    order: 2;
}

.news-detail-image {
    width: 100%;
    border-radius: 0.75rem;
    overflow: hidden;
    margin-bottom: 2rem;
}

.news-detail-content.layout-imageleft .news-detail-image,
.news-detail-content.layout-imageright .news-detail-image {
    margin-bottom: 0;
}

.news-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.news-detail-summary {
    font-size: 1.25rem;
    color: #374151;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-weight: 500;
}

.news-detail-text {
    font-size: 1.0625rem;
color: #374151;
    line-height: 1.8;
}

.news-detail-text p {
    margin-bottom: 1.5rem;
}

.news-detail-text h2,
.news-detail-text h3,
.news-detail-text h4 {
    color: #111827;
 margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.news-detail-text ul,
.news-detail-text ol {
  margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.news-detail-text li {
    margin-bottom: 0.5rem;
}

/* Tags */
.news-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
align-items: center;
    padding: 1.5rem 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}

.news-tags-label {
    font-weight: 600;
    color: #111827;
    font-size: 0.9375rem;
}

.news-detail-tag {
    padding: 0.5rem 1rem;
    background: rgba(245, 158, 11, 0.1);
    color: var(--primary-dark);
    border-radius: 0.5rem;
    font-size: 0.9375rem;
 font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.news-detail-tag:hover {
    background: var(--primary);
    color: white;
}

/* Share */
.news-detail-share {
    display: flex;
align-items: center;
    gap: 1rem;
}

.news-share-label {
 font-weight: 600;
    color: #111827;
    font-size: 0.9375rem;
}

.news-share-buttons {
    display: flex;
    gap: 0.75rem;
}

.news-share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
  font-weight: 600;
    color: #374151;
  cursor: pointer;
    transition: all 0.2s;
}

.news-share-btn:hover {
    background: #f9fafb;
    border-color: var(--primary);
    color: var(--primary);
}

/* Sidebar */
.news-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-sidebar-card {
    background: white;
    border-radius: 0.75rem;
  padding: 1.5rem;
    border: 1px solid #e5e7eb;
}

.news-sidebar-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 1.25rem 0;
}

.news-author-card {
    text-align: center;
}

.news-author-card-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin: 1rem 0 0.25rem 0;
}

.news-author-card-role {
    font-size: 0.9375rem;
    color: #6b7280;
}

/* Related News */
.news-related-list {
    display: flex;
  flex-direction: column;
    gap: 1rem;
}

.news-related-item {
  display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.news-related-item:hover {
    background: #f9fafb;
    border-color: var(--primary);
}

.news-related-image {
    width: 80px;
    height: 80px;
    border-radius: 0.5rem;
overflow: hidden;
    flex-shrink: 0;
    background: #f3f4f6;
}

.news-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-related-content {
 flex: 1;
}

.news-related-category {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
  text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.news-related-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.news-related-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    color: #6b7280;
}

.news-related-date .material-icons {
    font-size: 0.875rem;
}

/* Comments Section */
.news-comments-section {
    background: white;
    border-radius: 0.75rem;
    padding: 2rem;
    border: 1px solid #e5e7eb;
    margin-top: 3rem;
}

.news-comments-title {
    font-size: 1.5rem;
    font-weight: 700;
 color: #111827;
    margin: 0 0 2rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-comments-title .material-icons {
    color: var(--primary);
    font-size: 1.75rem;
}

/* Comment Form */
.news-comment-form {
    background: #f9fafb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
}

.news-comment-form-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.news-comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
}

.news-comment-user {
    font-weight: 600;
    color: #111827;
}

.news-comment-input {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-family: inherit;
    resize: vertical;
margin-bottom: 1rem;
}

.news-comment-input:focus {
outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.news-comment-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-comment-hint {
    font-size: 0.8125rem;
    color: #6b7280;
}

.news-comment-login {
    text-align: center;
    padding: 2rem;
    background: #f9fafb;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}

.news-comment-login .material-icons {
    font-size: 3rem;
    color: #d1d5db;
    margin-bottom: 0.5rem;
}

.news-comment-login p {
  margin: 0;
    font-size: 1rem;
    color: #6b7280;
}

.news-comment-login a {
    color: var(--primary);
 font-weight: 600;
}

/* Comments List */
.news-comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-comment-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 0.75rem;
}

.news-comment-item.reply {
    margin-left: 3rem;
    background: white;
    border: 1px solid #e5e7eb;
}

.news-comment-content {
    flex: 1;
}

.news-comment-header {
    display: flex;
    justify-content: space-between;
align-items: center;
    margin-bottom: 0.75rem;
}

.news-comment-author {
    font-weight: 600;
    color: #111827;
}

.news-comment-date {
    font-size: 0.8125rem;
    color: #6b7280;
}

.news-comment-text {
    font-size: 0.9375rem;
    color: #374151;
    line-height: 1.6;
    margin: 0;
}

.news-comment-replies {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-comments-empty {
    text-align: center;
    padding: 3rem;
 color: #6b7280;
}

.news-comments-empty .material-icons {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .news-detail-container {
        grid-template-columns: 1fr;
    }

    .news-detail-content.layout-imageleft,
    .news-detail-content.layout-imageright {
        grid-template-columns: 1fr;
    }

  .news-detail-content.layout-imageright .news-detail-image {
        order: 0;
    }

    .news-detail-main {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .news-detail-title {
     font-size: 1.75rem;
    }

    .news-detail-main {
   padding: 1.5rem;
    }

    .news-detail-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-detail-stats {
        flex-direction: column;
gap: 0.5rem;
    }

    .news-share-buttons {
    flex-wrap: wrap;
    }

    .news-comment-item.reply {
        margin-left: 1.5rem;
    }
}
