/* Ko-fi Support Modal Styles */

.acl-kofi-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(2px);
}

.acl-kofi-modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.acl-kofi-modal-content {
    background: #fff;
    width: 90%;
    max-width: 500px;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    font-family: 'Open Sans', sans-serif; /* Fallback */
}

.acl-kofi-modal-overlay.visible .acl-kofi-modal-content {
    transform: translateY(0);
}

.acl-kofi-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
    transition: color 0.2s;
}

.acl-kofi-close:hover {
    color: #333;
}

.acl-kofi-header h2 {
    font-size: 22px;
    color: #333;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.acl-kofi-body p {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.acl-kofi-body strong {
    color: #ee5a24; /* Theme Color */
}

/* Community Note */
.acl-kofi-community-note {
    background: #fff8f5;
    border: 1px solid #ffe4d9;
    padding: 12px;
    border-radius: 12px;
    margin: 15px 0;
}

.acl-kofi-community-note p {
    font-size: 13px !important;
    color: #d35400 !important;
    margin-bottom: 0 !important;
    font-weight: 600;
}

/* Support Buttons */
.acl-kofi-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 25px 0;
}

.acl-kofi-btn {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    color: #fff !important;
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.acl-kofi-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.acl-pulse {
    animation: acl-pulse-animation 2s infinite;
}

@keyframes acl-pulse-animation {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); box-shadow: 0 0 15px rgba(238, 90, 36, 0.4); }
    100% { transform: scale(1); }
}

.acl-btn-1 { background: #29abe0; } /* Ko-fi Blue */
.acl-btn-3 { background: #FF5E5B; } /* Ko-fi Red */
.acl-btn-5 { background: #FFC107; color: #333 !important; } /* Gold */

/* Dismiss Button */
.acl-kofi-dismiss-container {
    margin-top: 15px;
}

.acl-kofi-dismiss {
    background: #f5f5f5;
    border: 2px solid #eee;
    padding: 10px 25px;
    border-radius: 20px;
    color: #999;
    font-size: 14px;
    cursor: not-allowed;
    transition: all 0.3s;
    width: 100%;
}

.acl-kofi-dismiss.ready {
    background: none;
    color: #888;
    cursor: pointer;
    border-color: #eee;
}

.acl-kofi-dismiss.ready:hover {
    border-color: #ddd;
    color: #555;
    background: #f9f9f9;
}

/* Footer */
.acl-kofi-footer {
    margin-top: 20px;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.acl-kofi-already-donated {
    font-size: 12px;
    color: #999;
    text-decoration: underline;
    cursor: pointer;
}

.acl-kofi-already-donated:hover {
    color: #ee5a24;
}

.acl-kofi-note {
    font-size: 11px;
    color: #aaa;
    margin-top: 5px;
    margin-bottom: 0;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .acl-kofi-modal-content {
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        position: absolute;
        bottom: 0;
        transform: translateY(100%);
        padding: 25px 20px 40px 20px;
        max-height: 90vh; /* Limit height */
        overflow-y: auto; /* Enable scroll if content is too long */
    }

    .acl-kofi-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .acl-kofi-btn {
        width: 100%;
        text-align: center;
    }
}
