/* News Page - Clean Newspaper Style */

.news-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 1rem;
}

.news-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

/* Category Tabs */
.news-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
    flex-wrap: wrap;
    border-bottom: 1px solid #e0e0e0;
}

.news-tabs::-webkit-scrollbar {
    height: 4px;
}

.news-tabs::-webkit-scrollbar-thumb {
    background: #1a1a1a;
    border-radius: 2px;
}

.news-tab {
    padding: 0.6rem 1.5rem;
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #666;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.news-tab:hover {
    color: #1a1a1a;
    background: #f8f8f8;
}

.news-tab.active {
    color: #1a1a1a;
    border-bottom-color: #d1393e;
    background: #fafafa;
}

/* Search Bar */
.news-search-form {
    margin-bottom: 2rem;
}

.news-search-form .input-group {
    gap: 0;
}

.news-search-form .form-control {
    border: 1px solid #ccc;
    border-radius: 0;
    padding: 10px 14px;
    font-size: 0.9rem;
    background: #fff;
    transition: all 0.2s ease;
}

.news-search-form .form-control:focus {
    border-color: #1a1a1a;
    box-shadow: none;
    outline: none;
}

.news-search-form .btn {
    border-radius: 0;
    padding: 0 1.25rem;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.news-search-form .btn.bg-teko {
    background: #d1393e;
    border-color: #d1393e;
}

.news-search-form .btn.bg-teko:hover {
    background: #b83036;
    border-color: #b83036;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* News Card */
.news-card {
    background: white;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    border-color: #ccc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.news-card-image {
    position: relative;
    height: 160px;
    overflow: hidden;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.03);
}

.news-card-badge {
    position: absolute;
    top: 10px;
    left: 0;
    background: #d1393e;
    color: white;
    padding: 0.25rem 0.6rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    z-index: 2;
}

.news-card-content {
    padding: 0.9rem 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.35;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.news-card-title:hover {
    color: #d1393e;
}

.news-card-description {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.45;
    margin-bottom: 0.75rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.6rem;
    border-top: 1px solid #f0f0f0;
    font-size: 0.75rem;
}

.news-card-source {
    font-weight: 700;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-size: 0.7rem;
}

.news-card-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #888;
}

/* Skeleton Loader */
.news-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.news-skeleton-card {
    background: white;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.news-skeleton-image {
    height: 160px;
    background: linear-gradient(90deg, #f5f5f5 25%, #e8e8e8 50%, #f5f5f5 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-bottom: 1px solid #e0e0e0;
}

.news-skeleton-content {
    padding: 0.9rem 1rem;
}

.news-skeleton-line {
    height: 0.85rem;
    background: #f0f0f0;
    margin-bottom: 0.6rem;
    background: linear-gradient(90deg, #f5f5f5 25%, #e8e8e8 50%, #f5f5f5 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.news-skeleton-line:last-child {
    width: 55%;
}

.news-skeleton-line:nth-child(2) {
    width: 80%;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Empty State */
.news-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: #fafafa;
    border: 1px solid #e0e0e0;
}

.news-empty-icon {
    font-size: 3.5rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.news-empty-title {
    font-family: 'Georgia', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.news-empty-text {
    color: #666;
    font-size: 0.9rem;
}

/* Results Info */
.news-results-info {
    margin-bottom: 1.5rem;
    padding: 0.6rem 1rem;
    background: #f8f8f8;
    border-left: 3px solid #1a1a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-results-count {
    font-size: 0.85rem;
    color: #1a1a1a;
    font-weight: 600;
}

.news-results-count strong {
    color: #d1393e;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .news-skeleton-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .news-title {
        font-size: 1.75rem;
    }

    .news-tabs {
        gap: 0;
    }

    .news-tab {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .news-search-form .form-control {
        border-radius: 0;
    }

    .news-search-form .input-group {
        flex-direction: column;
    }

    .news-search-form .form-control {
        border-radius: 0.375rem 0.375rem 0 0;
    }

    .news-search-form .btn:first-of-type {
        border-radius: 0 0 0.375rem 0.375rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .news-skeleton-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .news-card-image {
        height: 180px;
    }

    .news-skeleton-image {
        height: 180px;
    }

    .news-card-content {
        padding: 0.85rem;
    }

    .news-card-title {
        font-size: 0.95rem;
    }

    .news-results-info {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-skeleton-grid {
        grid-template-columns: 1fr;
    }

    .news-card-image {
        height: 160px;
    }

    .news-skeleton-image {
        height: 160px;
    }

    .news-card-badge {
        font-size: 0.6rem;
        padding: 0.2rem 0.5rem;
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.news-card {
    animation: fadeIn 0.3s ease-out;
}
