/* Extrait de resources/views/front/donation/category.blade.php */

/* ========== CATÉGORIE DANS LA CARTE ========== */
.donation-category-modern {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 6px 14px;
    border-radius: 0;
    margin-bottom: 12px;
}

.donation-category-modern i {
    font-size: 11px;
}

/* ========== TITRE AMÉLIORÉ ========== */
.donation-title-modern {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.3;
    min-height: 60px; /* ✅ Hauteur minimale pour alignement */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* ✅ Limite à 2 lignes */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.donation-title-modern a {
    color: #1a202c;
    text-decoration: none;
    transition: all 0.3s ease;
    background: linear-gradient(to right, #10b981 0%, #059669 100%);
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
}

.donation-title-modern a:hover {
    color: #10b981;
    background-size: 100% 2px;
}
/* ========== SECTION PADDING ========== */
.section-padding {
    padding: 100px 0;
}

/* ========== CATEGORY DESCRIPTION ========== */
.category-intro {
    background: #fff;
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

.category-description-card {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.1);
}

.category-banner {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.category-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
}

.description-content {
    padding: 50px 60px;
    position: relative;
}

.description-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #fff;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.description-content p {
    color: #4a5568;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.description-content h3,
.description-content h4 {
    color: #1a202c;
    font-weight: 700;
    margin-bottom: 15px;
    margin-top: 30px;
}

/* ========== SECTION HEADER ========== */
.donations-list {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    padding: 8px 24px;
    border-radius: 0;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(32px, 5vw, 42px);
    font-weight: 900;
    color: #1a202c;
    margin-bottom: 15px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 18px;
    color: #718096;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #10b981;
    padding: 14px 30px;
    border: 2px solid #10b981;
    border-radius: 0;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.btn-view-all:hover {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

/* ========== DONATION CARD (Identique à donations.blade.php) ========== */
.donation-card-modern {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
}

.donation-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.2);
}

.donation-photo-modern {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.donation-photo-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.donation-card-modern:hover .donation-photo-modern img {
    transform: scale(1.15);
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(5, 150, 105, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.donation-card-modern:hover .photo-overlay {
    opacity: 1;
}

.view-btn {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
    font-size: 24px;
    text-decoration: none;
    transform: scale(0);
    transition: transform 0.3s ease 0.1s;
}

.donation-card-modern:hover .view-btn {
    transform: scale(1);
}

.featured-badge-modern {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    padding: 8px 16px;
    border-radius: 0;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    z-index: 2;
}

.country-badge-modern {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    padding: 8px 16px;
    border-radius: 0;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    z-index: 2;
}

.donation-content-modern {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.donation-title-modern {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.3;
}

.donation-title-modern a {
    color: #f4791f;
    text-decoration: none;
    transition: all 0.3s ease;
    background: linear-gradient(to right, #10b981 0%, #059669 100%);
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
}



.donation-title-modern a:hover {
    color: #10b981;
    background-size: 100% 2px;
}

.donation-description-modern {
    color: #718096;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

.price-tags-modern {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.price-tag-modern {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    padding: 6px 12px;
    border-radius: 0;
    font-size: 13px;
    font-weight: 700;
}

.price-tag-modern small {
    color: #718096;
    font-weight: 600;
}

.price-tag-modern.more-tag {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

.donation-progress-modern {
    margin-top: auto;
}

.progress-header-modern {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.progress-label {
    font-size: 13px;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.progress-percentage {
    font-size: 14px;
    font-weight: 800;
    color: #10b981;
}

.progress-bar-modern {
    height: 8px;
    background: #e2e8f0;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill-modern {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 0;
    transition: width 0.6s ease;
}

.progress-stats-modern {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.raised-modern,
.goal-modern {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
}

.raised-modern {
    color: #10b981;
}

.goal-modern {
    color: #718096;
}

.donation-stats-simple {
    margin-top: auto;
}

.raised-amount {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    padding: 10px 16px;
    border-radius: 0;
    font-weight: 700;
    font-size: 15px;
}

.btn-donate-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 10px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    padding: 14px 25px;
    border-radius: 0;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.4s ease;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.btn-donate-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-donate-modern:hover::before {
    left: 100%;
}

.btn-donate-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
    color: #fff;
}

/* ========== EMPTY STATE ========== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.empty-icon i {
    font-size: 60px;
    color: #10b981;
}

.empty-state h3 {
    font-size: 28px;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 15px;
}

.empty-state p {
    font-size: 16px;
    color: #718096;
    margin-bottom: 30px;
}

.btn-back-categories {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    padding: 14px 30px;
    border-radius: 0;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.btn-back-categories:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
    color: #fff;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 767px) {
    .section-padding {
        padding: 60px 0;
    }

    .page-top-modern {
        min-height: 300px;
    }

    .page-content {
        padding: 60px 20px;
    }

    .category-intro {
        margin-top: 0;
    }

    .category-banner {
        height: 250px;
    }

    .description-content {
        padding: 40px 30px;
    }

    .donation-photo-modern {
        height: 220px;
    }

    .donation-content-modern {
        padding: 25px 20px;
    }

    .donation-title-modern {
        font-size: 20px;
    }

    .btn-view-all {
        width: 100%;
        justify-content: center;
        margin-top: 20px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .category-banner {
        height: 320px;
    }

    .description-content {
        padding: 45px 40px;
    }

    .donation-photo-modern {
        height: 250px;
    }
}

/* ==========================================================
   MONTANT LIBRE
   Même champ que sur /donations. Le style vit ici et non dans cart.css :
   cette feuille est partagée avec le panier et la fiche d'un don, qui
   gardent leur apparence.
   ========================================================== */
.dc-section .donation-custom-amount {
    display: flex;
    align-items: center;
    gap: 8px;
    /* Le liseré déborde de 3px, puis de 5px au focus : il lui faut cette
       réserve pour ne pas mordre sur les éléments voisins. */
    margin: 6px 0 14px;
}

.dc-section .donation-custom-amount input[type="number"] {
    flex: 1;
    min-width: 0;
    padding: 10px 1rem;
    border: 0;
    border-radius: 10px;
    outline: 2px solid #FEBF00;
    outline-offset: 3px;
    background-color: #e2e2e2;
    /* 12,1:1 sur #e2e2e2 : le fond est clair, il faut un texte sombre. */
    color: #16233A;
    font-family: inherit;
    font-weight: 700;
    transition: 0.25s;
}

.dc-section .donation-custom-amount input[type="number"]::placeholder {
    color: #55617A;
    font-weight: 400;
}

/* Flèches natives retirées : le montant se saisit au clavier. */
.dc-section .donation-custom-amount input[type="number"]::-webkit-outer-spin-button,
.dc-section .donation-custom-amount input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.dc-section .donation-custom-amount input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.dc-section .donation-custom-amount input[type="number"]:focus {
    outline-offset: 5px;
    background-color: #fff;
    /* #FEBF00 ne fait que 1,7:1 sur un fond très clair : seul, il ne
       signalerait pas le focus au clavier. L'ambre du site atteint 5,5:1. */
    outline-color: #8F5E19;
}

.dc-section .donation-custom-amount span {
    flex-shrink: 0;
    color: #55617A;
    font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
    .dc-section .donation-custom-amount input[type="number"] { transition: none; }
}

