/**
 * Home Cards Components
 * Styles for the landing page card grid (mid-content section)
 *
 * Components:
 * - News Grid Layout
 * - Link Cards (news/event cards with images)
 * - Statistics Cards
 * - Server Status Card
 * - Download Card
 */

/* === NEWS GRID LAYOUT === */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 10px;
    width: 100%;
}

/* === BASE CARD === */
.news-card {
    position: relative;
    background-color: rgba(81, 56, 40, 0.4);
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
    border: 1px solid rgba(180, 148, 110, 0.2);
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* === LINK CARD (Image Cards) === */
.news-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(62, 42, 30, 0.9), transparent);
}

.news-content {
    padding: 15px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.news-date {
    font-size: 12px;
    color: #dac0a3;
}

.news-author {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-card .news-title {
    color: #dac0a3;
    font-size: 15px;
    line-height: 1.4;
    margin: 0;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* === STATISTICS CARD === */
.statistics-card {
    display: flex;
    flex-direction: column;
    padding: 0;
}

.statistics-card .stats-header {
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(180, 148, 110, 0.2);
}

.statistics-card .stats-header .news-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.statistics-card .stats-header .news-title i {
    color: var(--color-text-special);
}

.statistics-card .forum-ticker {
    flex: 1;
}

/* === SERVER STATUS CARD === */
.server-status {
    font-size: var(--font-size-special-small);
    display: flex;
    align-items: center;
    gap: 5px;
}

.server-status i {
    font-size: 8px;
}

.server-status.online i {
    color: var(--color-accent-green);
}

.server-status.offline i {
    color: var(--color-accent-red);
}

.server-status.partial i {
    color: var(--color-text-accent);
}

/* === DOWNLOAD CARD === */
.download-card {
    display: flex;
    flex-direction: column;
}

.download-card .download {
    flex: 1;
    height: auto;
    min-height: 90px;
}

.download-card .download.register {
    background: url("../../image_7.jpg") no-repeat center center;
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: var(--spacing-lg);
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .news-card {
        min-width: unset;
        max-width: 100%;
    }
}
