/**
 * Overview Grid Component Styles
 * Version: 1.0.0
 * Fixed pixel sizes for consistent display across devices
 */

/* Navigation Grid - Fixed pixel sizes */
.overview-navigation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 180px);
    gap: 12px;
    margin-top: 16px;
    max-width: 100%;
    justify-content: start;
}

.overview-nav-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 16px 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    width: 180px;
    height: 140px;
    box-sizing: border-box;
}

.overview-nav-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.overview-nav-card:hover .overview-nav-card-icon {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.overview-nav-card-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 8px;
    color: var(--primary-color);
    margin-bottom: 8px;
    transition: all 0.3s;
    flex-shrink: 0;
}

.overview-nav-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.3;
}

.overview-nav-card p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .overview-navigation-grid {
        grid-template-columns: repeat(auto-fill, 160px);
        gap: 10px;
        justify-content: center;
    }
    
    .overview-nav-card {
        width: 160px;
        height: 130px;
        padding: 12px 10px;
    }
    
    .overview-nav-card-icon {
        width: 32px;
        height: 32px;
        margin-bottom: 6px;
    }
    
    .overview-nav-card h3 {
        font-size: 13px;
    }
    
    .overview-nav-card p {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .overview-navigation-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .overview-nav-card {
        width: 100%;
        height: 120px;
        padding: 10px 8px;
    }
    
    .overview-nav-card-icon {
        width: 28px;
        height: 28px;
    }
    
    .overview-nav-card h3 {
        font-size: 12px;
    }
    
    .overview-nav-card p {
        font-size: 10px;
        -webkit-line-clamp: 2;
    }
}


