/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
}

.title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(45deg, #00ff88, #00ccff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
}

.subtitle {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    color: #cccccc;
    font-weight: 400;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.donation-card {
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.donation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.card-header {
    text-align: center;
    margin-bottom: 30px;
}

.card-header h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    color: #00ff88;
    margin-bottom: 10px;
}

.card-header p {
    color: #cccccc;
    font-size: 1.1rem;
}

/* Form Styles */
.donation-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: #00ccff;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    padding: 15px;
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #888888;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group small {
    color: #aaaaaa;
    font-size: 0.85rem;
    margin-top: 5px;
    font-style: italic;
}

/* Amount Selector */
.amount-selector {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.preset-amounts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.amount-btn {
    padding: 12px 20px;
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.amount-btn:hover {
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
    transform: translateY(-2px);
}

.amount-btn.active {
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
}

/* Priority Info */
.priority-info {
    background: rgba(0, 204, 255, 0.1);
    border: 1px solid rgba(0, 204, 255, 0.3);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.info-icon {
    font-size: 2rem;
    color: #00ccff;
    flex-shrink: 0;
}

.info-text strong {
    color: #00ccff;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 10px;
}

.info-text ul {
    list-style: none;
    padding-left: 0;
}

.info-text li {
    padding: 3px 0;
    position: relative;
    padding-left: 20px;
}

.info-text li:before {
    content: "▶";
    color: #00ff88;
    position: absolute;
    left: 0;
}

/* PayPal Container */
.paypal-container {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#paypal-button-container {
    min-height: 50px;
}

/* Success/Error Messages */
.success-message,
.error-message {
    text-align: center;
    padding: 30px;
    border-radius: 12px;
    margin-top: 20px;
}

.success-message {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.error-message {
    background: rgba(255, 0, 68, 0.1);
    border: 1px solid rgba(255, 0, 68, 0.3);
}

.success-icon,
.error-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.success-message h3 {
    color: #00ff88;
    font-family: 'Orbitron', monospace;
    margin-bottom: 15px;
}

.error-message h3 {
    color: #ff0044;
    font-family: 'Orbitron', monospace;
    margin-bottom: 15px;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #888888;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .logo-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .donation-card {
        padding: 25px;
    }
    
    .preset-amounts {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .priority-info {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .donation-card {
        padding: 20px;
    }
    
    .preset-amounts {
        grid-template-columns: 1fr;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 255, 136, 0.3);
    border-radius: 50%;
    border-top-color: #00ff88;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Pulse Animation for Logo */
@keyframes pulse {
    0% {
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 255, 136, 0.6);
    }
    100% {
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    }
}

.logo {
    animation: pulse 3s ease-in-out infinite;
}

/* Smart protection that allows form functionality */
body, h1, h2, h3, p, div:not(.form-group):not(.amount-selector):not(.paypal-container) {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow selection in form elements */
input, textarea, button {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    user-select: text !important;
    -webkit-touch-callout: default !important;
}

/* Allow clicking on buttons and form elements */
.amount-btn, button, input, textarea, #paypal-button-container, #paypal-button-container * {
    pointer-events: auto !important;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

/* Disable text selection on non-interactive elements */
::selection {
    background: rgba(0, 255, 136, 0.2);
}

::-moz-selection {
    background: rgba(0, 255, 136, 0.2);
}

/* Block print styles */
@media print {
    * {
        display: none !important;
    }
    
    body::after {
        content: "Printing is not allowed for security reasons.";
        display: block !important;
        font-size: 24px;
        text-align: center;
        margin-top: 50px;
    }
}