/* Buy Me a Coffee Plugin Styles */

.buymeacoffee-container {
    max-width: 800px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff !important;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid #e9ecef;
}

/* Ensure all sections have white backgrounds */
.buymeacoffee-container * {
    color: inherit;
}

.buymeacoffee-container,
.buymeacoffee-stats,
.buymeacoffee-card,
.buymeacoffee-form {
    background: #ffffff !important;
}

.buymeacoffee-profile-header {
    background: linear-gradient(135deg, #ff9a56 0%, #ffad56 50%, #ffc356 100%);
    padding: 40px 30px;
    text-align: center;
    position: relative;
}

.buymeacoffee-profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 154, 86, 0.9) 0%, rgba(255, 195, 86, 0.9) 100%);
}

.buymeacoffee-profile-content {
    position: relative;
    z-index: 1;
}

.buymeacoffee-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 40px;
    color: rgba(255, 255, 255, 0.8);
}

.buymeacoffee-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.buymeacoffee-profile-name {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.buymeacoffee-profile-title {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 400;
}

.buymeacoffee-stats {
    background: #ffffff;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.buymeacoffee-stat {
    display: flex;
    flex-direction: column;
}

.buymeacoffee-stat-number {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 4px;
}

.buymeacoffee-stat-label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

.buymeacoffee-card {
    background: #ffffff;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transition: none;
    position: relative;
    overflow: visible;
}

.buymeacoffee-card:hover {
    box-shadow: none;
    transform: none;
}

.buymeacoffee-form {
    padding: 30px;
}

.buymeacoffee-form-header {
    display: flex;
    align-items: center;
}

.buymeacoffee-form-icon {
    font-size: 24px;
    margin-right: 10px;
    color: #ff9a56;
}

.buymeacoffee-form-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.buymeacoffee-amounts {
    margin-bottom: 25px;
}

.amount-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

@media(max-width: 400px){
    .amount-buttons{
        grid-template-columns: repeat(2, 1fr);
    }
}

.amount-btn {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
}

.amount-btn::before {
    content: '☕';
    margin-right: 6px;
    font-size: 14px;
}

.amount-btn:hover {
    border-color: #ff9a56;
    background: #fff8f3;
}

.amount-btn.selected {
    background: #ff9a56;
    border-color: #ff9a56;
    color: #ffffff;
}

.amount-btn.selected::before {
    content: '☕';
}

.buymeacoffee-donor-info {
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    transition: all 0.2s ease;
    font-family: inherit;
    background: #ffffff;
    color: #2c3e50;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff9a56;
    box-shadow: 0 0 0 3px rgba(255, 154, 86, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #6c757d;
    opacity: 0.8;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.4;
}

.form-group.amount-group {
    margin-bottom: 20px;
}

.form-group.amount-group input {
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.buymeacoffee-payment {
    margin-bottom: 20px;
}

.buymeacoffee-payment .donate-button {
    width: 100%;
    padding: 16px 24px;
    border: none !important;
    border-radius: 32px !important;
    background: linear-gradient(135deg, #ff9a56 0%, #ffd210 100%) !important;
    color: white !important;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: none !important;
}

.buymeacoffee-payment .donate-button:before {
    content: "🔒";
    font-size: 14px;
}

.buymeacoffee-payment .donate-button:hover:not(:disabled) {
    opacity: 0.9;
    background: linear-gradient(135deg, #ff9f00 0%, #ffd200 100%) !important
}

.buymeacoffee-payment .donate-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: linear-gradient(135deg, #ff9f92 0%, #ffd279 100%) !important;
}

.buymeacoffee-payment .donate-button .button-text {
    color: white !important;
}

.buymeacoffee-security-note {
    text-align: center;
    font-size: 12px;
    color: #6c757d;
    margin-top: 15px;
}

.buymeacoffee-security-note a {
    color: #ff9a56;
    text-decoration: none;
    font-weight: 600;
}

.buymeacoffee-security-note a:hover {
    text-decoration: underline;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-message {
    background: linear-gradient(135deg, #ffe6e6 0%, #ffcccc 100%);
    color: #d63384;
    border: 2px solid #f5c6cb;
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    animation: shake 0.5s ease-in-out;
}

.error-message::before {
    content: '⚠️';
    margin-right: 8px;
    font-size: 16px;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.success-message {
    background: linear-gradient(135deg, #e6f7e6 0%, #ccf2cc 100%);
    color: #198754;
    border: 2px solid #c3e6cb;
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    animation: slideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.success-message::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: celebration 2s ease-in-out infinite;
}

@keyframes celebration {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.success-message h4 {
    color: #198754;
    font-size: 22px;
    margin: 0 0 12px 0;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.success-message p {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Design */
@media (max-width: 600px) {
    .buymeacoffee-container {
        margin: 15px 10px;
        max-width: 350px;
    }
    
    .buymeacoffee-profile-header {
        padding: 30px 20px;
    }
    
    .buymeacoffee-avatar {
        width: 70px;
        height: 70px;
        font-size: 35px;
    }
    
    .buymeacoffee-profile-name {
        font-size: 20px;
    }
    
    .buymeacoffee-profile-title {
        font-size: 14px;
    }
    
    .buymeacoffee-stats {
        padding: 15px;
        gap: 15px;
    }
    
    .buymeacoffee-stat-number {
        font-size: 18px;
    }
    
    .buymeacoffee-stat-label {
        font-size: 11px;
    }
    
    .buymeacoffee-form {
        padding: 25px 20px;
    }
    
    .amount-buttons {
        gap: 8px;
    }
    
    .amount-btn {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .donate-button {
        padding: 14px 20px;
        font-size: 15px;
    }
}

@media (max-width: 400px) {
    .buymeacoffee-container {
        margin: 10px 5px;
        max-width: 320px;
    }
    
    .buymeacoffee-profile-header {
        padding: 25px 15px;
    }
    
    .buymeacoffee-avatar {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
    
    .buymeacoffee-profile-name {
        font-size: 18px;
    }
    
    .buymeacoffee-stats {
        padding: 12px;
        gap: 12px;
    }
    
    .buymeacoffee-form {
        padding: 20px 15px;
    }
    
    .amount-btn {
        padding: 8px 12px;
        font-size: 12px;
        border-radius: 20px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .donate-button {
        padding: 12px 18px;
        font-size: 14px;
    }
}

/* Force light theme - disable dark mode */
.buymeacoffee-container * {
    color-scheme: light !important;
}

/* Payment Modal Styles */
.payment-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow-y: auto;
}

.payment-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border: none;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #666;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.close-modal:hover,
.close-modal:focus {
    color: #333;
    text-decoration: none;
}

#payment-element {
    margin: 24px 0;
}

#submit-payment {
    width: 100%;
    padding: 16px 24px;
    border: none !important;
    border-radius: 32px !important;
    background: linear-gradient(135deg, #ff9a56 0%, #ffd210 100%) !important;
    color: white !important;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: none !important;
}

#submit-payment:hover:not(:disabled) {
    opacity: 0.9;
    background: linear-gradient(135deg, #ff9f00 0%, #ffd200 100%) !important;
}

#submit-payment:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

#payment-message {
    margin-top: 16px;
    text-align: center;
    font-size: 14px;
    color: #d63384;
    background: linear-gradient(135deg, #ffe6e6 0%, #ffcccc 100%);
    border: 2px solid #f5c6cb;
    border-radius: 16px;
    padding: 16px 20px;
    display: none;
}

/* Responsive Modal */
@media (max-width: 600px) {
    .payment-modal-content {
        margin: 0;
        width: 100%;
        border-radius: 0;
    }
} 