/**
 * Wedding Manager - Gift Registry Frontend Styles
 * Extrait du template gift-registry.php
 */

/* Container */
.wm-gift-registry-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header */
.wm-gift-header {
    text-align: center;
    margin-bottom: 60px;
}

.wm-gift-page-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 2.2em;
    color: #2D3748;
    margin: 0 0 16px 0;
}

.wm-gift-page-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wm-gift-intro {
    font-size: 1.1em;
    color: #718096;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Gift List */
.wm-gifts-list {
    display: grid;
    gap: 18px;
    margin-bottom: 40px;
}

/* Gift Card */
.wm-gift-list-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
    display: grid;
    grid-template-columns: 160px 1fr;
    min-height: 170px;
    transition: box-shadow 0.3s ease;
}

.wm-gift-list-card:hover {
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

/* Card Media */
.wm-gift-list-media {
    background: #F7FAFC;
    height: 100%;
}

.wm-gift-list-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wm-gift-list-media-placeholder {
    width: 100%;
    height: 100%;
}

/* Card Body */
.wm-gift-list-body {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wm-gift-list-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

/* Price */
.wm-gift-price {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    white-space: nowrap;
}

.wm-gift-price-label {
    font-size: 0.78em;
    color: #A0AEC0;
}

.wm-gift-price-value {
    font-weight: 800;
    color: #2D3748;
}

/* Title & Description */
.wm-gift-title {
    font-size: 1.25em;
    color: #2D3748;
    margin: 0 0 12px 0;
}

.wm-gift-description {
    color: #718096;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95em;
}

/* Progress */
.wm-gift-progress {
    margin: 0;
}

.wm-gift-progress-bar {
    height: 12px;
    background: #EDF2F7;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.wm-gift-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4770FF, #6B8FFF);
    transition: width 0.5s ease;
    border-radius: 6px;
}

/* Stats */
.wm-gift-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85em;
    color: #718096;
}

.wm-gift-percentage {
    font-weight: 700;
    color: #4770FF;
}

.wm-gift-collected {
    font-weight: 700;
    color: #4770FF;
}

.wm-gift-contributors {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9em;
}

/* Actions */
.wm-gift-funded {
    background: #C6F6D5;
    color: #22543D;
    padding: 10px 12px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.wm-gift-contribute-btn {
    width: 100%;
    padding: 12px 14px;
    background: #4770FF;
    color: white;
    text-align: center;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    display: block;
    transition: background 0.3s;
}

.wm-gift-contribute-btn:hover {
    background: #3558D6;
    color: white;
}

/* Note */
.wm-gift-note {
    background: #F7FAFC;
    border-left: 4px solid #4770FF;
    padding: 20px;
    border-radius: 8px;
    max-width: 800px;
    margin: 40px auto 0;
}

.wm-gift-note p {
    margin: 0;
    color: #4A5568;
    font-size: 0.95em;
    line-height: 1.6;
}

/* Empty State */
.wm-empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #A0AEC0;
}

/* Responsive */
@media (max-width: 768px) {
    .wm-gift-list-card {
        grid-template-columns: 1fr;
    }
    
    .wm-gift-list-media {
        height: 220px;
    }
    
    .wm-gift-page-title {
        font-size: 1.9em;
    }
}
