/* Faucet Page Styles - Consistent with Project Page Design */

/* Base Layout */
.faucet-page {
    min-height: 100vh;
    background: #f8fafc;
    padding: 2rem;
    color: #333;
    max-width: 1000px;
    margin: 0 auto;
}

/* Header Section */
.faucet-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.faucet-header h1 {
    color: #374151;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.faucet-header h1 i {
    color: #667eea;
}

/* Card Styles */
.airdrop-form-card, 
.support-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.airdrop-form-card h3, 
.support-card h3 {
    margin: 0 0 1.5rem 0;
    color: #374151;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.airdrop-form-card h3 i,
.support-card h3 i {
    color: #667eea;
}

/* Math Challenge */
.math-challenge {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.math-challenge.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    color: #6b7280;
}

.challenge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.challenge-header label {
    font-weight: 600;
    color: #374151;
}

.refresh-challenge-btn {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    color: #667eea;
    transition: all 0.3s ease;
}

.refresh-challenge-btn:hover:not(:disabled) {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-1px);
}

.refresh-challenge-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.math-question {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
    color: #374151;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.math-answer-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s ease;
    background: white;
}

.math-answer-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* Airdrop Request Button */
.airdrop-request-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.airdrop-request-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.airdrop-request-btn:disabled {
    background: #e2e8f0;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Message Cards */
.message-card {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    word-break: break-word;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.message-card.success {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.message-card.error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.card-icon {
    font-size: 2rem;
    opacity: 0.9;
    flex-shrink: 0;
}

.card-content h4 {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    font-size: 1.1rem;
}

.card-content p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

/* Support Section */
.donation-address {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.donation-address code {
    background: #f8fafc;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    flex: 1;
    min-width: 300px;
    word-break: break-all;
    border: 1px solid #e2e8f0;
}

.copy-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.copy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.support-credit {
    color: #6b7280;
    font-size: 14px;
    margin-top: 1rem;
}

.support-credit a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.support-credit a:hover {
    text-decoration: underline;
}

/* Loading States */
.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 0.5rem;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .faucet-page {
        padding: 1rem;
    }
    
    .faucet-header {
        padding: 1.5rem;
    }
    
    .faucet-header h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 8px;
    }
    
    .airdrop-form-card,
    .support-card {
        padding: 1.5rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .donation-address {
        flex-direction: column;
        align-items: stretch;
    }
    
    .donation-address code {
        min-width: auto;
    }
    
    .challenge-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .info-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .faucet-page {
        padding: 0.5rem;
    }
    
    .faucet-header,
    .airdrop-form-card,
    .support-card {
        padding: 1rem;
    }
    
    .math-challenge {
        padding: 1rem;
    }
    
    .info-card {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }
}
