/* =================================================================
   Shared Card & Layout Styles
   Common styles used across RegistryList, DocumentList, ProductList
   and other list/grid pages in the Odin application.
   ================================================================= */

/* Base page container with centered max-width */
.page-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* Filter row layout - responsive grid */
.shared-filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.shared-filter-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: end;
}

/* Card base style with hover effect */
.shared-card {
    background: white;
    border: 1px solid var(--rz-border-color);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.shared-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
}

.shared-card.clickable {
    cursor: pointer;
}

/* Statistics bar - horizontal stat items */
.shared-stats-bar {
    display: flex;
    gap: 1.5rem;
    padding: 1rem;
    background: var(--rz-base-background-color);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

/* Statistics grid - card-based stats */
.shared-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.shared-stat-card {
    padding: 1.25rem;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: 2px solid transparent;
}

.shared-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.shared-stat-card.selected {
    border-color: var(--rz-primary);
    background-color: var(--rz-primary-lighter);
}

.shared-stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.shared-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--rz-text-color);
}

.shared-stat-label {
    font-size: 0.875rem;
    color: var(--rz-text-secondary-color);
    font-weight: 500;
}

/* Card title text */
.shared-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--rz-text-color);
    margin-bottom: 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Detail information row */
.shared-detail-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.875rem;
    color: var(--rz-text-secondary-color);
}

/* Badge styling */
.shared-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 16px;
    font-weight: 600;
    font-size: 0.8rem;
}

/* Info badge (lighter background) */
.shared-info-badge {
    background-color: var(--rz-background-color-light, #f5f5f5);
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

/* Price display */
.shared-price-label {
    font-size: 0.75rem;
    color: var(--rz-text-secondary-color);
    text-transform: uppercase;
}

.shared-price-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--rz-success);
}

/* Empty state */
.shared-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--rz-base-background-color);
    border-radius: 12px;
    border: 2px dashed var(--rz-border-color);
}

.shared-empty-state-icon {
    font-size: 4rem;
    color: var(--rz-text-tertiary-color);
    margin-bottom: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-container {
        padding: 1rem;
    }

    .shared-stats-bar {
        gap: 0.75rem;
    }

    .shared-card {
        padding: 1rem;
    }
}
