/* Wine Club Manager - Frontend CSS */

/* ========================================
   GRILLE MODERNE DES VINS
   ======================================== */
.wine-club-wines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    padding: 20px 0;
}

@media (max-width: 768px) {
    .wine-club-wines-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 16px;
    }
}

/* ========================================
   CARTE VIN - DESIGN MODERNE
   ======================================== */
.wine-card-item {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.wine-card-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.15);
}

/* ========================================
   IMAGE DU VIN - DESIGN COMPACT
   ======================================== */
.wine-card-image {
    position: relative;
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.wine-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.wine-placeholder {
    font-size: 64px;
    opacity: 0.9;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* ========================================
   CONTENU DE LA CARTE
   ======================================== */
.wine-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

/* Titre du vin */
.wine-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Producteur */
.wine-producer {
    font-size: 14px;
    color: #7f8c8d;
    margin: 0;
    font-weight: 500;
}

/* ========================================
   MÉTADONNÉES - DESIGN COMPACT
   ======================================== */
.wine-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 4px 0;
}

.wine-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #5a6c7d;
    padding: 4px 10px;
    background: #f7f9fc;
    border-radius: 20px;
    font-weight: 500;
}

.wine-meta-item .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #667eea;
}

/* Badges type de vin */
.wine-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wine-badge-rouge {
    background: linear-gradient(135deg, #c94b4b 0%, #8b1a1a 100%);
    color: white;
}

.wine-badge-blanc {
    background: linear-gradient(135deg, #f5f5dc 0%, #d4af37 100%);
    color: #2c3e50;
}

.wine-badge-rosé,
.wine-badge-rose {
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
    color: white;
}

.wine-badge-champagne,
.wine-badge-effervescent {
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    color: white;
}

.wine-badge-autre {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #2c3e50;
}

/* ========================================
   PRIX - MISE EN VALEUR
   ======================================== */
.wine-price {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
    margin: 8px 0 0;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

/* ========================================
   DESCRIPTION / NOTES
   ======================================== */
.wine-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #6c757d;
    margin: 8px 0 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ========================================
   BOUTON - DESIGN MODERNE
   ======================================== */
.wine-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin-top: auto;
}

.wine-button:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white;
}

.wine-button:active {
    transform: translateY(0);
}

/* ========================================
   MESSAGE "AUCUN VIN"
   ======================================== */
.wine-no-results {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 16px;
    margin: 20px 0;
}

.wine-no-results p {
    font-size: 18px;
    color: #6c757d;
    margin: 10px 0;
}

/* ========================================
   GRILLE GÉNÉRIQUE (fallback)
   ======================================== */
.wine-club-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin: 20px 0;
}

.wine-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

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

.wine-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.wine-card-content {
    padding: 20px;
}

.wine-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #2c3e50;
}

.wine-card p {
    margin: 5px 0;
    color: #666;
}

/* ========================================
   BOUTONS GÉNÉRIQUES
   ======================================== */
.button {
    display: inline-block;
    padding: 10px 20px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.button:hover {
    background: #764ba2;
    transform: translateY(-2px);
}
