/* TTB COLA Registry System - Home Page Styles */
/* Variables, reset, body, container, nav provided by base.css */

/* Page Header */
.home-header {
    padding: var(--spacing-xl) var(--spacing-xl) 0;
}

.home-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.home-subtitle {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: 4px;
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--spacing-md);
    padding: var(--spacing-lg) var(--spacing-xl);
}

.stat-tile {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-md) var(--spacing-lg);
}

.stat-tile-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-tile-icon.blue   { background: #eff6ff; color: #2563eb; }
.stat-tile-icon.violet { background: #f5f3ff; color: #7c3aed; }
.stat-tile-icon.amber  { background: #fffbeb; color: #d97706; }
.stat-tile-icon.green  { background: #ecfdf5; color: #059669; }
.stat-tile-icon.red    { background: #fef2f2; color: #dc2626; }
.stat-tile-icon.teal   { background: #f0fdfa; color: #0d9488; }

.stat-tile-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.stat-tile-value {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
}

.stat-tile-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* Enrichment Progress Card */
.enrichment-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    margin: 0 var(--spacing-xl);
}

.enrichment-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
}

.enrichment-card-header h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

.enrichment-card-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.enrichment-card-link:hover {
    color: var(--primary-dark);
}

.progress-bar-track {
    width: 100%;
    height: 10px;
    background: var(--gray-100);
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #059669);
    border-radius: 5px;
    transition: width 1s ease;
}

.enrichment-meta {
    display: flex;
    justify-content: space-between;
    margin-top: var(--spacing-sm);
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.enrichment-pct {
    font-weight: 700;
    color: var(--gray-900);
}

/* Quick Actions */
.actions-section {
    padding: var(--spacing-xl);
}

.actions-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 var(--spacing-md);
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.action-tile {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-md) var(--spacing-lg);
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}

.action-tile:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

.action-tile-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.action-tile-icon.blue   { background: #eff6ff; color: #2563eb; }
.action-tile-icon.violet { background: #f5f3ff; color: #7c3aed; }
.action-tile-icon.amber  { background: #fffbeb; color: #d97706; }
.action-tile-icon.green  { background: #ecfdf5; color: #059669; }
.action-tile-icon.red    { background: #fef2f2; color: #dc2626; }
.action-tile-icon.teal   { background: #f0fdfa; color: #0d9488; }

.action-tile-body {
    flex: 1;
    min-width: 0;
}

.action-tile-body h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 2px;
}

.action-tile-body p {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin: 0;
    line-height: 1.4;
}

.action-tile-arrow {
    color: var(--gray-400);
    flex-shrink: 0;
    transition: color 0.15s ease, transform 0.15s ease;
}

.action-tile:hover .action-tile-arrow {
    color: var(--primary-color);
    transform: translateX(2px);
}

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

@media (max-width: 768px) {
    .home-header {
        padding: var(--spacing-lg) var(--spacing-md) 0;
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        padding: var(--spacing-md);
    }

    .enrichment-card {
        margin: 0 var(--spacing-md);
    }

    .actions-section {
        padding: var(--spacing-md);
    }

    .actions-grid {
        grid-template-columns: 1fr;
    }
}

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