/**
 * Lenny Food Delivery - Cards
 * Stili per i componenti card dell'applicazione
 */

/* Card styles */
.card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: none;
    /*transition: var(--transition-base);*/
    height: 100%;
    margin-bottom: 0;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid var(--color-grey-200);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: var(--color-grey-800);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h5 {
    margin: 0;
    font-weight: 700;
    font-size: var(--font-size-lg);
}

.card-header .btn {
    padding: 0.375rem 0.75rem;
}

.card-body {
    padding: 1.5rem;
}

/* Stats card styles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    /*transition: var(--transition-base);*/
    position: relative;
    overflow: hidden;
    /*transition: transform 0.3s ease, box-shadow 0.3s ease;*/
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-card-primary {
    background: var(--gradient-primary);
    color: white;
}

.stat-card-secondary {
    background: var(--gradient-secondary);
    color: white;
}

.stat-card-accent-1 {
    background: var(--gradient-accent-1);
    color: white;
}

.stat-card-accent-2 {
    background: var(--gradient-accent-2);
    color: white;
}

.stat-card-accent-3 {
    background: var(--gradient-accent-3);
    color: white;
}

.stat-card-accent-4 {
    background: var(--gradient-accent-4);
    color: white;
}

.stat-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius);
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-title {
    font-size: var(--font-size-md);
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-change {
    display: flex;
    align-items: center;
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.8);
}

.stat-change i {
    margin-right: 0.25rem;
}

.stat-change.positive {
    color: rgba(255, 255, 255, 0.9);
}

.stat-change.negative {
    color: rgba(255, 255, 255, 0.7);
}

.stat-pattern {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='rgba(255,255,255,.075)' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 0;
}

/* Menu item cards */
.menu-item-card {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    /*transition: var(--transition-base);*/
    height: 100%;
    position: relative;
}

.menu-item-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.menu-item-image {
    height: 180px;
    position: relative;
    overflow: hidden;
}

.menu-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /*transition: transform 0.5s ease;*/
}

.menu-item-card:hover .menu-item-image img {
    transform: scale(1.1);
}

.menu-item-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
}

.menu-item-content {
    padding: 1.25rem;
    position: relative;
}

.menu-item-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.menu-item-price {
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--border-radius-pill);
    padding: 0.25rem 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    margin-left: 0.5rem;
    font-size: var(--font-size-sm);
}

.menu-item-description {
    color: var(--color-grey-600);
    margin-bottom: 1rem;
    font-size: var(--font-size-sm);
}

.menu-item-actions {
    border-top: 1px solid var(--color-grey-200);
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: flex-end;
    background-color: var(--color-grey-100);
}