/* Donate Case Page Styling */

/* Professional Hero Section */
.professional-hero {
    background: #1a1a1a;
    color: white;
    position: relative;
    overflow: hidden;
}

.professional-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/hero/hero-pattern.svg') no-repeat center center;
    background-size: cover;
    opacity: 0.05;
    z-index: 1;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    padding: 80px 0;
}

.hero-content {
    padding-right: 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero-badge i {
    color: #e74c3c;
    margin-right: 8px;
    font-size: 16px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: white;
}

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-breadcrumb {
    margin-bottom: 0;
}

.hero-breadcrumb .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.hero-breadcrumb .breadcrumb-item {
    font-size: 14px;
}

.hero-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.hero-breadcrumb .breadcrumb-item a:hover {
    color: white;
}

.hero-breadcrumb .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.9);
}

.hero-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: rgba(255, 255, 255, 0.5);
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(231, 76, 60, 0.2);
    border: 2px solid #e74c3c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.stat-icon i {
    font-size: 24px;
    color: #e74c3c;
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

.stat-content p {
    font-size: 14px;
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 991px) {
    .hero-overlay {
        padding: 60px 0;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 3rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-stats {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }
    
    .stat-item {
        flex: 1;
        max-width: 200px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.4rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stat-item {
        max-width: none;
    }
}

/* Main Content */
.donation-content {
    background: #f8f9fa;
    min-height: 80vh;
}

/* Case Summary Card */
.case-summary-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: sticky;
    top: 20px;
}

.case-summary-header {
    background: #e74c3c;
    color: white;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.case-summary-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.05);
    z-index: 1;
}

.case-summary-header h3 {
    position: relative;
    z-index: 2;
}

.case-summary-header h3 {
    margin: 0;
    font-weight: 700;
}

.case-summary-body {
    padding: 2rem;
}

.case-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.case-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.case-badge.urgent {
    background: #dc3545;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.progress-section .progress {
    height: 12px;
    border-radius: 10px;
    background: #e9ecef;
}

.progress-bar {
    border-radius: 10px;
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
}

.beneficiary-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #007bff;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-item label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.info-item span {
    font-weight: 600;
    color: #2c3e50;
}

/* Donation Form Card */
.donation-form-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.donation-form-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.donation-form-header h3 {
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.donation-form-body {
    padding: 2rem;
}

/* Amount Selection */
.amount-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.5rem;
}

.amount-btn {
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #007bff;
}

.amount-btn:hover,
.amount-btn.active {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.custom-amount input {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 0.75rem;
    font-size: 1.1rem;
    transition: border-color 0.3s ease;
}

.custom-amount input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Payment Methods */
.payment-method {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.payment-method:hover {
    border-color: #007bff;
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.1);
}

.payment-method input[type="radio"] {
    display: none;
}

.payment-method input[type="radio"]:checked + .payment-label {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-left: 4px solid #007bff;
}

.payment-label {
    display: block;
    padding: 1.5rem;
    cursor: pointer;
    margin: 0;
    transition: background 0.3s ease;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.payment-icon {
    width: 50px;
    height: 50px;
    background: #f8f9fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.payment-details h6 {
    margin: 0 0 0.25rem 0;
    font-weight: 600;
    color: #2c3e50;
}

.payment-details p {
    margin: 0;
    font-size: 14px;
}

.payment-logos {
    margin-left: auto;
    display: flex;
    gap: 0.5rem;
    font-size: 1.5rem;
    color: #6c757d;
}

/* Payment Details Sections */
.payment-details-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1rem;
}

/* Bank Details */
.bank-details-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #28a745;
}

.bank-info .info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.bank-info .info-row:last-child {
    border-bottom: none;
}

.bank-info label {
    font-weight: 600;
    color: #6c757d;
    min-width: 120px;
}

.bank-info span {
    flex-grow: 1;
    font-weight: 600;
    color: #2c3e50;
}

.copy-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.copy-btn:hover {
    background: #0056b3;
}

/* Mobile Money Options */
.mobile-money-options .row {
    gap: 1rem;
}

.momo-option {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #ffc107;
    height: 100%;
}

.momo-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.momo-header h6 {
    margin: 0;
    font-weight: 600;
    color: #2c3e50;
}

.momo-details .info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.momo-details .info-row:last-child {
    border-bottom: none;
}

.momo-details label {
    font-weight: 600;
    color: #6c757d;
    min-width: 60px;
}

.momo-details span {
    font-weight: 600;
    color: #2c3e50;
    flex-grow: 1;
}

/* Donor Information */
.donor-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #6f42c1;
}

.donor-info .form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}

.donor-info .form-control:focus {
    border-color: #6f42c1;
    box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.25);
}

/* Action Buttons */
.action-buttons #donate-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    border-radius: 25px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.action-buttons #donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.action-buttons #donate-btn:disabled {
    background: #6c757d;
    box-shadow: none;
    transform: none;
}

/* Security Info */
.security-info {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

/* Responsive Design */
@media (max-width: 768px) {
    .donation-content {
        padding: 1rem 0;
    }
    
    .case-summary-card,
    .donation-form-card {
        margin-bottom: 2rem;
    }
    
    .case-summary-body,
    .donation-form-body {
        padding: 1.5rem;
    }
    
    .amount-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .payment-option {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .bank-info .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .mobile-money-options .row {
        flex-direction: column;
    }
}

/* Loading States */
.loading-state {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* Success/Error States */
.alert {
    border-radius: 10px;
    border: none;
    padding: 1.5rem;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #b8daff 100%);
    color: #0c5460;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

/* Copy Button Animation */
.copy-btn.copied {
    background: #28a745;
    animation: copySuccess 0.5s ease;
}

@keyframes copySuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Donors List Styling */
.donors-section {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

.donors-section h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 1rem;
}

.donors-stats {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #e9ecef;
}

.donors-stats h5 {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.donors-stats small {
    font-size: 0.75rem;
    color: #6c757d;
}

.donors-list {
    max-height: 400px;
    overflow-y: auto;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.donor-item {
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f1f3f4 !important;
}

.donor-item:hover {
    background-color: #f8f9fa;
}

.donor-item:last-child {
    border-bottom: none !important;
}

.donor-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-size: 0.9rem;
}

.donor-info h6 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.25rem;
}

.donor-info small {
    font-size: 0.75rem;
    color: #6c757d;
}

.donor-amount strong {
    font-size: 1rem;
    color: #28a745;
    font-weight: 600;
}

.donor-amount small {
    font-size: 0.7rem;
    color: #6c757d;
    text-transform: capitalize;
}

.badge {
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
}

/* Empty state styling */
.donors-list .text-center.text-muted {
    padding: 2rem 1rem;
}

.donors-list .text-center.text-muted i {
    color: #dee2e6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .donor-item {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem;
    }
    
    .donor-amount {
        align-self: flex-end;
        text-align: right;
    }
    
    .donors-stats .row > div {
        margin-bottom: 1rem;
    }
}