/* FPLS News Frontend Styles */

/* ===========================
   АРХИВ НОВОСТЕЙ
   =========================== */

.fpls-news-archive {
    padding: 10px 0;
}

.fpls-news-archive .page-header {
    text-align: center;
    margin-bottom: 50px;
}

.fpls-news-archive .page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.fpls-news-archive .page-description {
    font-size: 1.025rem;
    color: #666;
}

/* ===========================
   КАРТОЧКА НОВОСТИ
   =========================== */

.fpls-news-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    border-radius: 10px;
}

.fpls-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.news-card-image-link {
    display: block;
    overflow: hidden;
    position: relative;
    height: 220px;
}

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

.fpls-news-card:hover .news-card-image-link img {
    transform: scale(1.05);
}

.news-placeholder-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100%;
}

.news-placeholder-image i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.5);
}

.fpls-news-card .card-title a {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.fpls-news-card .card-title a:hover {
    color: #0d6efd !important;
}

.fpls-news-card .card-text {
    font-size: 0.9375rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

img.card-img-top {
    width: 300px;
    height: auto;
}

/* ===========================
   ОДИНОЧНАЯ НОВОСТЬ
   =========================== */

.fpls-news-single {
    padding: 6px 0;
}

.news-article {
    max-width: 900px;
    margin: 0 auto;
    padding: 4px;

}

.news-header {
    margin-bottom: 30px;
}

.news-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 20px;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9375rem;
    color: #666;
}

.news-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.news-meta i {
    color: #0d6efd;
}

.news-meta a {
    color: #0d6efd;
    text-decoration: none;
}

.news-meta a:hover {
    text-decoration: underline;
}

.news-featured-image {
    margin: 30px 0;
    border-radius: 10px;
    overflow: hidden;
}

.news-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.news-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #333;
    margin: 30px 0;
}

.news-content p {
    margin-bottom: 1.5rem;
}

.news-content h2,
.news-content h3,
.news-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #1a1a1a;
}

.news-content a {
    color: #0d6efd;
    text-decoration: underline;
}

.news-content a:hover {
    color: #0a58ca;
}

/* Переключатель языков */
.news-lang-switcher {
    margin: 40px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.news-lang-switcher strong {
    display: block;
    margin-bottom: 15px;
    font-size: 1rem;
    color: #333;
}

.lang-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.lang-list li a {
    display: inline-block;
    padding: 8px 16px;
    background: #fff;
    border: 2px solid #dee2e6;
    border-radius: 5px;
    color: #333;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
}

.lang-list li a:hover {
    border-color: #0d6efd;
    color: #0d6efd;
}

.lang-list li a.active {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

/* Кнопка "Назад" */
.news-back-link {
    margin-top: 40px;
    text-align: center;
}

/* ===========================
   КНОПКА "ЗАГРУЗИТЬ ЕЩЁ"
   =========================== */

#fpls-load-more-news {
    min-width: 200px;
}

#fpls-load-more-news.loading .spinner-border {
    display: inline-block !important;
}

/* ===========================
   АДАПТИВ
   =========================== */

@media (max-width: 768px) {
    .fpls-news-archive .page-title {
        font-size: 1rem;
    }
img.card-img-top {
    width: 360px;
    height: auto;
}
    
    .news-article {
        padding: 2px;
    }
    
    .news-title {
        font-size: 1.75rem;
    }
    
    .news-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .news-content {
        font-size: 1rem;
    }
    
    .lang-list {
        flex-direction: column;
    }
    
    .lang-list li a {
        display: block;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .fpls-news-card .card-title a {
        font-size: 1rem;
    }
    
    .news-card-image-link {
        height: 180px;
    }
}
