/* ========================================
   ARTICLES - KitchenFlow
   Stili per la gestione articoli e dettagli
   ======================================== */

/* ===== Article Detail Page - Mobile First ===== */

/* Mobile card sections - better visual hierarchy */
.article-detail .card {
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(var(--bs-black-rgb), 0.1);
    transition: box-shadow 0.2s ease-in-out;
}

.article-detail .card:hover {
    box-shadow: 0 4px 6px rgba(var(--bs-black-rgb), 0.15);
}

/* Mobile-friendly headers */
.article-detail .card-header h5 {
    font-size: 1rem;
    font-weight: 600;
}

/* Definition lists mobile optimization */
.article-detail dl.row dt {
    font-weight: 600;
    color: var(--bs-secondary-color);
    margin-bottom: 0.25rem;
}

.article-detail dl.row dd {
    margin-bottom: 0.75rem;
}

/* Mobile cards for lists - better spacing and contrast */
.article-detail .mobile-card-list .card {
    border-left: 4px solid;
    margin-bottom: 0.75rem;
    transition: transform 0.2s ease-in-out;
}

.article-detail .mobile-card-list .card:active {
    transform: scale(0.98);
}

/* Color-coded borders for movement types */
.article-detail .border-success {
    border-left-color: var(--bs-success) !important;
}

.article-detail .border-danger {
    border-left-color: var(--bs-danger) !important;
}

.article-detail .border-primary {
    border-left-color: var(--bs-primary) !important;
}

.article-detail .border-secondary {
    border-left-color: var(--bs-secondary) !important;
}

/* Header responsive typography */
.h2-md {
    font-size: 1.75rem;
}

@media (min-width: 768px) {
    .h2-md {
        font-size: 2rem;
    }
}

/* Breadcrumb spacing */
.article-detail .breadcrumb {
    font-size: 0.875rem;
    padding: 0;
    margin-bottom: 0;
}

/* Button full-width on mobile, auto on desktop */
.w-md-auto {
    width: 100%;
}

@media (min-width: 768px) {
    .w-md-auto {
        width: auto !important;
    }
}

/* Badge sizing for mobile */
.article-detail .badge {
    font-size: 0.85rem;
    padding: 0.35em 0.65em;
}

/* Empty state icons */
.article-detail .text-center i[style*="font-size: 3rem"] {
    font-size: 2.5rem !important;
}

@media (min-width: 768px) {
    .article-detail .text-center i[style*="font-size: 3rem"] {
        font-size: 3rem !important;
    }
}

/* Chart container responsive */
#priceChart {
    width: 100%;
    min-height: 100px;
}

@media (min-width: 768px) {
    #priceChart {
        min-height: 120px;
    }
}

/* Card body padding adjustment for mobile */
@media (max-width: 767.98px) {
    .article-detail .card-body {
        padding: 1rem;
    }

    .article-detail .card-header {
        padding: 0.75rem 1rem;
    }
}


/* ========================================
   Article Thumbnails - Sistema Miniature Articoli
   ======================================== */

/* Dimensioni standard per miniature articoli */
.article-thumb-sm {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.article-thumb-md {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.article-thumb-lg {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

/* Layout inline articolo con immagine + nome */
.article-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-inline img {
    flex-shrink: 0;
}

