/* V4G Donations Plugin Styles */

/* Button Styles */
.v4g-donate-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.v4g-donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

/* Modal Overlay */
.v4g-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999999;
    backdrop-filter: blur(4px);
}

/* Modal Content */
.v4g-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalAppear 0.3s ease-out;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Modal Header */
.v4g-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 0 24px;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 24px;
}

.v4g-modal-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.v4g-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.v4g-modal-close:hover {
    background: #f5f5f5;
    color: #666;
}

/* Form Styles */
.v4g-donation-form {
    padding: 0 24px 24px 24px;
}

.v4g-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.v4g-form-group {
    display: flex;
    flex-direction: column;
}

.v4g-form-group label {
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
    font-size: 14px;
}

.v4g-form-group input,
.v4g-form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
}

.v4g-form-group select {
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
}

.v4g-form-group input:focus,
.v4g-form-group textarea:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.v4g-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Form Actions */
.v4g-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e5e5;
}

.v4g-btn-primary {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.v4g-btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.v4g-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.v4g-btn-secondary {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e1e5e9;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.v4g-btn-secondary:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

/* Success Modal */
.v4g-success-modal {
    text-align: center;
    padding: 40px;
    max-width: 400px;
}

.v4g-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    margin: 0 auto 24px auto;
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.v4g-success-modal h3 {
    margin: 0 0 16px 0;
    font-size: 24px;
    color: #333;
}

.v4g-success-modal p {
    margin: 0 0 24px 0;
    color: #666;
    line-height: 1.5;
}

/* Alpine.js cloak */
[x-cloak] {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .v4g-modal-content {
        width: 95%;
        margin: 20px;
        max-height: calc(100vh - 40px);
    }
    
    .v4g-form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .v4g-modal-header {
        padding: 20px 20px 0 20px;
    }
    
    .v4g-donation-form {
        padding: 0 20px 20px 20px;
    }
    
    .v4g-form-actions {
        flex-direction: column;
    }
    
    .v4g-btn-primary,
    .v4g-btn-secondary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .v4g-modal-header h3 {
        font-size: 20px;
    }
    
    .v4g-form-group input,
    .v4g-form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
} 