/* ==========================================================================
   Additional Component Styles
   ========================================================================== */

/* Footer */
.site-footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: var(--space-xl) 0;
    margin-top: var(--space-2xl);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.footer-nav ul {
    list-style: none;
    display: flex;
    gap: var(--space-md);
}

.footer-nav a {
    color: var(--text-light);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-nav a:hover {
    opacity: 1;
    text-decoration: none;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.stat-card {
    text-align: center;
    padding: var(--space-lg);
    border-left: 4px solid var(--primary);
}

.stat-value {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin: var(--space-sm) 0;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

/* Reports Grid */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--space-lg);
}

.report-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.report-thumbnail {
    margin-bottom: var(--space-md);
    overflow: hidden;
    border-radius: var(--radius);
}

.report-thumbnail img {
    width: 100%;
    height: auto;
    transition: var(--transition);
}

.report-card:hover .report-thumbnail img {
    transform: scale(1.05);
}

.report-meta {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: var(--space-xs);
}

.report-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
}

.report-title a {
    color: var(--text-primary);
    text-decoration: none;
}

.report-title a:hover {
    color: var(--primary);
}

.report-excerpt {
    flex-grow: 1;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
}

thead tr {
    border-bottom: 2px solid var(--bg-tertiary);
}

th {
    padding: var(--space-md);
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

td {
    padding: var(--space-md);
    border-bottom: 1px solid var(--bg-tertiary);
}

tbody tr:hover {
    background-color: var(--bg-secondary);
}

/* Status Badge */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-block;
}

.status-completed {
    background-color: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.status-pending {
    background-color: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.status-external {
    background-color: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 3px solid var(--bg-tertiary);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: var(--space-md);
    }

    .stat-value {
        font-size: 2rem;
    }

    .reports-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    table {
        font-size: 0.875rem;
    }

    th,
    td {
        padding: var(--space-sm);
    }

    .telegram-summary>div {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   Blog Feed Section
   ========================================================================== */
.blog-tab {
    padding: 0.5rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 9999px;
    background: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.blog-tab:hover {
    border-color: #10b981;
    color: #10b981;
}

.blog-tab.active {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.blog-card-thumb img:hover {
    transform: scale(1.05);
}

.blog-card h3 a:hover {
    color: #10b981 !important;
}