/* AI News Page Styles */

/* News Container Layout */
.news-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 1024px) {
    .news-container {
        grid-template-columns: 1fr 380px;
    }
}

/* News Main Area */
.news-main {
    order: -1;
}

.news-sidebar {
    order: 1;
}

/* Sticky Sidebar */
.sticky-sidebar {
    position: relative;
}

@media (min-width: 1024px) {
    .sticky-sidebar {
        position: sticky;
        top: 100px;
    }
}

/* Featured News */
.featured-news {
    transition: all 0.3s;
}

.featured-news:hover {
    transform: translateY(-4px);
}

/* News Item */
.news-item {
    transition: all 0.3s;
}

.news-item:hover {
    transform: translateY(-2px);
}

.news-thumbnail {
    flex-shrink: 0;
    overflow: hidden;
    width: 100%;
    height: 192px;
}

@media (min-width: 768px) {
    .news-thumbnail {
        width: 256px;
        height: 192px;
    }
}

.news-thumbnail img {
    transition: transform 0.3s;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.news-item:hover .news-thumbnail img {
    transform: scale(1.05);
}

/* Category Badge */
.news-category-badge {
    display: inline-block;
    padding: 4px 12px;
    background-color: #fff7ed;
    color: #f97316;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    border: 1px solid #f97316;
}

/* Sidebar Card */
.sidebar-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.sidebar-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f97316;
}

/* Top News Item */
.top-news-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.top-news-item:hover {
    background-color: #f9fafb;
}

.top-news-rank {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to right, #f97316, #ec4899);
    color: white;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

.top-news-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.top-news-item:hover .top-news-title {
    color: #f97316;
}

/* Latest News Item */
.latest-news-item {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s;
}

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

.latest-news-item:hover {
    padding-left: 8px;
}

.latest-news-title {
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.latest-news-item:hover .latest-news-title {
    color: #f97316;
}

/* Reporter Item */
.reporter-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.reporter-item:hover {
    background-color: #f9fafb;
}

.reporter-image {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.reporter-name {
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
}

.reporter-specialty {
    font-size: 0.75rem;
    color: #f97316;
    margin-bottom: 2px;
}

/* Ad Banner */
.ad-banner {
    background: linear-gradient(135deg, #f9fafb, #f3f4f6);
}

/* Category Tabs */
.category-tab {
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.category-tab.active {
    background: linear-gradient(to right, #f97316, #ec4899);
    color: white;
    font-weight: bold;
    border-color: transparent;
}

/* Filter Select */
.filter-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

/* Line Clamp Utility */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Featured News Author */
.featured-news img[class*="w-10"] {
    width: 40px;
    height: 40px;
}

/* News Item Author */
.news-item img[class*="w-8"] {
    width: 32px;
    height: 32px;
}

/* Category News Item (List style in category sections) */
.category-news-item {
    transition: all 0.3s;
}

.category-news-item:hover {
    transform: translateX(4px);
}

.category-news-thumbnail {
    flex-shrink: 0;
    overflow: hidden;
}

.category-news-thumbnail img {
    transition: transform 0.3s;
}

.category-news-item:hover .category-news-thumbnail img {
    transform: scale(1.05);
}

/* Article Content (Detail Page) */
.prose {
    color: #374151;
    line-height: 1.8;
}

.prose h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose p {
    margin-bottom: 1.5rem;
}

.prose h3:first-child {
    margin-top: 0;
}

/* Comment Profile Images */
.comment-item img.rounded-full,
.comment-item .rounded-full {
    width: 40px !important;
    height: 40px !important;
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
}

/* Reply Profile Images */
.comment-item .replies img.rounded-full,
.comment-item .replies .rounded-full,
.reply-form img.rounded-full,
.reply-form .rounded-full {
    width: 32px !important;
    height: 32px !important;
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
}

/* Comment Form Profile Image */
.comment-form-profile,
.comment-form-profile + .rounded-full {
    width: 80px !important;
    height: 80px !important;
}
