/* ============================================
   BigMineWorld — News Cards
   Файл: _assets/css/news.css
   AuroraV2 | NamelessMC v2
   Тёмная тема: body.dark
   ============================================ */

/* === СВЕТЛАЯ ТЕМА (по умолчанию) === */

.bmw-news-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    margin-bottom: 28px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.bmw-news-card:hover {
    border-color: rgba(0, 140, 200, 0.25);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.bmw-news-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.bmw-news-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bmw-news-ava {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 140, 200, 0.3);
    flex-shrink: 0;
}

.bmw-news-meta-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bmw-news-author {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bmw-news-author:hover {
    color: #0088cc !important;
}

.bmw-news-time {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.4);
}

.bmw-news-time .icon {
    font-size: 11px;
    margin-right: 2px;
}

.bmw-news-label {
    background: linear-gradient(135deg, #00bfff, #0099cc);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

.bmw-news-title {
    display: block;
    padding: 18px 22px 10px;
    font-size: 21px;
    font-weight: 800;
    color: #1a1a2e;
    text-decoration: none;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.bmw-news-title:hover {
    color: #0088cc;
}

.bmw-news-body {
    padding: 4px 22px 8px;
    color: #444;
    font-size: 14.5px;
    line-height: 1.75;
    max-height: 180px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.5s ease;
}

.bmw-news-body::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, transparent, #ffffff);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.bmw-news-body.bmw-expanded {
    max-height: 3000px;
}

.bmw-news-body.bmw-expanded::after {
    opacity: 0;
}

.bmw-news-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 8px 0;
}

.bmw-news-body * {
    background-color: transparent !important;
}

.bmw-news-body p {
    margin-bottom: 8px;
}

.bmw-news-foot {
    padding: 14px 22px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.bmw-btn-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.bmw-btn-toggle:hover {
    border-color: rgba(0, 140, 200, 0.4);
    color: #0088cc;
    background: rgba(0, 140, 200, 0.05);
}

.bmw-btn-toggle .icon {
    font-size: 12px;
    margin: 0;
    transition: transform 0.3s ease;
}

.bmw-btn-readmore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #00bfff, #0099cc);
    color: #ffffff !important;
    padding: 9px 22px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(0, 191, 255, 0.2);
}

.bmw-btn-readmore:hover {
    background: linear-gradient(135deg, #33cfff, #00aadd);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 191, 255, 0.35);
    color: #ffffff !important;
}

.bmw-btn-readmore .icon {
    font-size: 12px;
    margin: 0;
    transition: transform 0.2s ease;
}

.bmw-btn-readmore:hover .icon {
    transform: translateX(3px);
}


/* ============================================
   ТЁМНАЯ ТЕМА — body.dark
   ============================================ */

body.dark .bmw-news-card {
    background: var(--bg-secondary-dark);
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

body.dark .bmw-news-card:hover {
    border-color: rgba(0, 191, 255, 0.3);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
}

body.dark .bmw-news-head {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

body.dark .bmw-news-ava {
    border-color: rgba(0, 191, 255, 0.35);
}

body.dark .bmw-news-author {
    color: #ffffff;
}

body.dark .bmw-news-author:hover {
    color: #00bfff !important;
}

body.dark .bmw-news-time {
    color: rgba(255, 255, 255, 0.35);
}

body.dark .bmw-news-title {
    color: #ffffff;
}

body.dark .bmw-news-title:hover {
    color: #00bfff;
}

body.dark .bmw-news-body {
    color: rgba(255, 255, 255, 0.6);
}

body.dark .bmw-news-body::after {
    background: linear-gradient(to bottom, transparent, var(--bg-secondary-dark));
}

body.dark .bmw-btn-toggle {
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.55);
}

body.dark .bmw-btn-toggle:hover {
    border-color: rgba(0, 191, 255, 0.4);
    color: #00bfff;
    background: rgba(0, 191, 255, 0.06);
}


/* ============================================
   МОБИЛЬНАЯ АДАПТАЦИЯ
   ============================================ */

@media (max-width: 768px) {
    .bmw-news-card {
        border-radius: 10px;
        margin-bottom: 20px;
    }

    .bmw-news-head {
        padding: 12px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .bmw-news-title {
        padding: 12px 16px 8px;
        font-size: 18px;
    }

    .bmw-news-body {
        padding: 4px 16px 8px;
        max-height: 130px;
        font-size: 13.5px;
    }

    .bmw-news-foot {
        padding: 10px 16px 14px;
        flex-direction: column;
        gap: 10px;
    }

    .bmw-btn-toggle,
    .bmw-btn-readmore {
        width: 100%;
        justify-content: center;
        padding: 11px 20px;
    }

    .bmw-news-ava {
        width: 34px;
        height: 34px;
    }
}