/* ============================================
   PRE-GIVING TUESDAY MODAL - CHURCH BRANDED
   ============================================ */

.pre-giving-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    animation: modalFadeIn 0.5s ease;
}

.pre-giving-modal.active {
    display: flex;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.pre-giving-modal-content {
    background: #ffffff;
    border-radius: 28px;
    max-width: 560px;
    width: 92%;
    padding: 0;
    border-top: 6px solid #e5ae49;
    animation: modalSlideUp 0.5s ease;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
    overflow: hidden;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalSlideUp {
    from { transform: translateY(40px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

/* Close Button */
.pre-giving-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    font-weight: 300;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    background: none;
    border: none;
    line-height: 1;
}

.pre-giving-modal-close:hover {
    color: #ffffff;
    transform: rotate(90deg);
}

/* Header */
.pre-giving-modal-header {
    background: linear-gradient(135deg, #2f557f 0%, #1e3a5f 100%);
    padding: 30px 30px 25px;
    text-align: center;
    position: relative;
}

.pre-giving-modal-header .modal-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 12px;
    background: rgba(255,255,255,0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #e5ae49;
    box-shadow: 0 4px 25px rgba(229,174,73,0.3);
    position: relative;
}

.pre-giving-modal-header .modal-icon i {
    font-size: 32px;
    color: #e5ae49;
}

.pre-giving-modal-header .modal-icon .cross-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: #e5ae49;
    color: #2f557f;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid #ffffff;
}

.pre-giving-modal-header h2 {
    color: #ffffff;
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.pre-giving-modal-header .subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    margin-top: 4px;
    letter-spacing: 1px;
}

/* Body */
.pre-giving-modal-body {
    padding: 25px 30px 30px;
}

/* Countdown Timer */
.countdown-container {
    background: linear-gradient(135deg, #fef5e8 0%, #fff8f0 100%);
    border-radius: 16px;
    padding: 20px 15px;
    text-align: center;
    margin-bottom: 20px;
    border: 1px solid rgba(229,174,73,0.25);
}

.countdown-label {
    font-size: 12px;
    color: #2f557f;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.countdown-item {
    text-align: center;
    background: rgba(47, 85, 127, 0.08);
    padding: 8px 14px;
    border-radius: 12px;
    min-width: 60px;
}

.countdown-number {
    font-size: 28px;
    font-weight: 700;
    color: #2f557f;
    display: block;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.countdown-item .countdown-label {
    font-size: 9px;
    color: #6c757d;
    letter-spacing: 1px;
    margin: 0;
    text-transform: uppercase;
}

/* Modal Content */
.modal-content-text h3 {
    color: #2f557f;
    font-size: 18px;
    text-align: center;
    margin: 0 0 10px 0;
}

.modal-content-text p {
    color: #444;
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
    margin: 0 0 15px 0;
}

.modal-content-text p strong {
    color: #2f557f;
}

/* Event Details */
.event-details {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 15px 0 20px;
}

.event-detail {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f8f9fa;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #2f557f;
}

.event-detail i {
    color: #e5ae49;
    font-size: 16px;
}

/* Giving Levels */
.giving-levels {
    margin: 15px 0 20px;
}

.giving-levels h4 {
    color: #2f557f;
    font-size: 14px;
    text-align: center;
    margin: 0 0 12px 0;
}

.levels-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.level-item {
    text-align: center;
    padding: 10px 6px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.level-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.level-item .level-name {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.level-item .level-amount {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #2f557f;
    margin-top: 2px;
}

.level-item.bronze { border-color: #cd7f32; background: rgba(205, 127, 50, 0.06); }
.level-item.silver { border-color: #c0c0c0; background: rgba(192, 192, 192, 0.06); }
.level-item.gold { border-color: #e5ae49; background: rgba(229, 174, 73, 0.08); }
.level-item.platinum { border-color: #2f557f; background: rgba(47, 85, 127, 0.08); }

.level-item.bronze .level-amount { color: #cd7f32; }
.level-item.silver .level-amount { color: #8a8a8a; }
.level-item.gold .level-amount { color: #e5ae49; }
.level-item.platinum .level-amount { color: #2f557f; }

/* Watch Live Button */
#watchLiveContainer {
    margin: 12px 0 16px;
}

#watchLiveBtn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#watchLiveBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220,53,69,0.4);
}

/* Social Subscribe */
#socialSubscribeContainer {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 12px 0 16px;
}

#socialSubscribeContainer p {
    font-size: 11px;
    color: #2f557f;
    font-weight: 600;
    margin: 0 0 8px 0;
}

/* Social Sharing */
#sharingContainer {
    padding: 12px;
    background: #fff8e8;
    border-radius: 12px;
    border: 1px solid rgba(229,174,73,0.3);
    margin: 12px 0 16px;
}

#sharingContainer p {
    font-size: 11px;
    color: #2f557f;
    font-weight: 600;
    margin: 0 0 8px 0;
}

/* Modal Actions */
.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.modal-actions .btn-donate,
.modal-actions .btn-reminder {
    flex: 1;
    min-width: 120px;
    padding: 14px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 15px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
}

.modal-actions .btn-donate {
    background: linear-gradient(135deg, #e5ae49, #d49a2e);
    color: #2f557f;
    border: 2px solid #e5ae49;
}

.modal-actions .btn-donate:hover {
    background: #d49a2e;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229,174,73,0.4);
}

.modal-actions .btn-reminder {
    background: #f8f9fa;
    color: #2f557f;
    border: 2px solid #e0e0e0;
}

.modal-actions .btn-reminder:hover {
    background: #2f557f;
    color: #ffffff;
    border-color: #2f557f;
    transform: translateY(-2px);
}

.modal-footer-text {
    font-size: 11px;
    color: #6c757d;
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.modal-footer-text i {
    color: #e5ae49;
    margin-right: 4px;
}

/* Progress Bar */
#progressContainer {
    margin-bottom: 15px;
}

#progressContainer .progress-text {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

#progressContainer .progress-text span:first-child {
    font-size: 12px;
    color: #2f557f;
    font-weight: 600;
}

#progressContainer .progress-text span:last-child {
    font-size: 12px;
    color: #e5ae49;
    font-weight: 700;
}

#progressBar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #2f557f, #e5ae49);
    border-radius: 10px;
    transition: width 1s;
}

/* ============================================ */
/* RESPONSIVE */
/* ============================================ */

@media (max-width: 768px) {
    .pre-giving-modal-content {
        width: 95%;
        border-radius: 20px;
    }
    
    .pre-giving-modal-header {
        padding: 20px 20px 18px;
    }
    
    .pre-giving-modal-header h2 {
        font-size: 22px;
    }
    
    .pre-giving-modal-body {
        padding: 20px;
    }
    
    .countdown-timer {
        gap: 8px;
    }
    
    .countdown-item {
        min-width: 50px;
        padding: 6px 10px;
    }
    
    .countdown-number {
        font-size: 22px;
    }
    
    .levels-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions .btn-donate,
    .modal-actions .btn-reminder {
        width: 100%;
        justify-content: center;
    }
    
    .event-details {
        gap: 10px;
    }
    
    .event-detail {
        font-size: 12px;
        padding: 4px 12px;
    }
    
    #sharingContainer div {
        gap: 6px;
    }
    
    #sharingContainer button {
        font-size: 10px;
        padding: 4px 10px;
    }
}

@media (max-width: 480px) {
    .pre-giving-modal-content {
        border-radius: 16px;
    }
    
    .pre-giving-modal-header .modal-icon {
        width: 56px;
        height: 56px;
    }
    
    .pre-giving-modal-header .modal-icon i {
        font-size: 24px;
    }
    
    .pre-giving-modal-header h2 {
        font-size: 19px;
    }
    
    .countdown-number {
        font-size: 18px;
    }
    
    .countdown-item {
        min-width: 40px;
        padding: 4px 8px;
    }
    
    .level-item .level-amount {
        font-size: 15px;
    }
}
/* ============================================ */
/* ADD THESE CHURCH BRANDING ENHANCEMENTS */
/* Add to the bottom of your existing CSS file */
/* ============================================ */

/* Enhanced Modal Animation */
@keyframes modalSlideUp {
    from { transform: translateY(40px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.pre-giving-modal-content {
    animation: modalSlideUp 0.5s ease;
}

/* Close Button Hover Enhancement */
.pre-giving-modal-close:hover {
    transform: rotate(90deg);
}

/* Level Item Hover Effects */
.level-item {
    transition: all 0.3s ease;
    cursor: pointer;
}

.level-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* Color-coded Giving Levels */
.level-item.bronze { border-color: #cd7f32; background: rgba(205, 127, 50, 0.06); }
.level-item.silver { border-color: #c0c0c0; background: rgba(192, 192, 192, 0.06); }
.level-item.gold { border-color: #e5ae49; background: rgba(229, 174, 73, 0.08); }
.level-item.platinum { border-color: #2f557f; background: rgba(47, 85, 127, 0.08); }

.level-item.bronze .level-amount { color: #cd7f32; }
.level-item.silver .level-amount { color: #8a8a8a; }
.level-item.gold .level-amount { color: #e5ae49; }
.level-item.platinum .level-amount { color: #2f557f; }

/* Enhanced Header Shadow */
.pre-giving-modal-header .modal-icon {
    box-shadow: 0 4px 25px rgba(229,174,73,0.3);
}

/* Progress Bar Text Styling */
#progressContainer .progress-text span:first-child {
    font-size: 12px;
    color: #2f557f;
    font-weight: 600;
}

#progressContainer .progress-text span:last-child {
    font-size: 12px;
    color: #e5ae49;
    font-weight: 700;
}

/* Sharing Container Button Enhancements */
#sharingContainer button {
    transition: all 0.3s ease !important;
}

#sharingContainer button:hover {
    transform: scale(1.05) !important;
}

/* Social Subscribe Link Enhancements */
#socialSubscribeButtons a {
    transition: all 0.3s ease !important;
}

#socialSubscribeButtons a:hover {
    transform: translateY(-2px) !important;
}