/* Giving Tuesday Component Styles */

/* Banner Styles */
.giving-tuesday-banner {
    width: 100%;
    padding: 12px 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 999;
    animation: slideDown 0.5s ease-out;
    background-color: #5F07B3;
    /* FORA Purple */
    color: white;
    display: none;
    /* Hidden by default */
}

.giving-tuesday-banner.show {
    display: block;
}

.gt-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.gt-banner-message {
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gt-banner-btn {
    background-color: white;
    color: #5F07B3;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 0.95rem;
    white-space: nowrap;
}

.gt-banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Popup Styles */
.gt-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    /* Higher than normal modals */
    display: none;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

.gt-popup.show {
    display: flex;
}

.gt-popup-container {
    width: 90%;
    max-width: 600px;
    background: white;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    animation: scaleUp 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

.gt-popup-close-btn {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.gt-popup-close-btn:hover {
    color: #000;
    background: white;
    transform: scale(1.1);
}

.gt-popup-image-container {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    position: relative;
}

.gt-popup-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gt-popup-content {
    padding: 25px;
    text-align: center;
    background: white;
}

.gt-popup-title {
    color: #5F07B3;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.gt-popup-text {
    color: #444;
    margin-bottom: 20px;
    line-height: 1.5;
    font-size: 1.1rem;
}

.gt-popup-cta {
    display: inline-block;
    background: linear-gradient(90deg, #5F07B3, #008DBB);
    color: white;
    padding: 12px 35px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(95, 7, 179, 0.3);
}

.gt-popup-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(95, 7, 179, 0.4);
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .gt-banner-content {
        flex-direction: column;
        gap: 10px;
    }

    .gt-popup-container {
        width: 95%;
        max-height: 90vh;
    }

    .gt-popup-image-container {
        max-height: 250px;
    }

    .gt-popup-title {
        font-size: 1.5rem;
    }
}