/* Buy Crypto Page Specific Styles */

/* Buy Crypto Hero Section */
.buy-crypto-hero-section {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
}

.buy-crypto-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.buy-crypto-content {
    position: relative;
    z-index: 2;
}

.buy-crypto-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.buy-crypto-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.buy-crypto-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.buy-crypto-stats .stat {
    text-align: center;
}

.buy-crypto-stats .stat h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.buy-crypto-stats .stat p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

/* Buy Crypto Form */
.buy-crypto-form {
    position: relative;
    z-index: 2;
}

.form-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-hover);
    color: var(--text-dark);
}

.form-card h4 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-dark);
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group .input-group {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-group .form-control,
.form-group .form-select {
    border: none;
    padding: 1rem;
    font-size: 1rem;
}

.form-group .form-control:focus,
.form-group .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 212, 170, 0.25);
}

.exchange-rate {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-card .btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    padding: 1rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.form-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Payment Methods Section */
.payment-methods-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.payment-methods-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.payment-methods-section > .container > .row:first-child p {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.payment-method-card {
    background: var(--bg-white);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
}

.payment-method-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.payment-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.payment-method-card h4 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.payment-method-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.payment-method-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.payment-method-card ul li {
    padding: 0.5rem 0;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
}

.payment-method-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 600;
}

/* Popular Cryptocurrencies */
.popular-crypto-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.popular-crypto-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.popular-crypto-section > .container > .row:first-child p {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.crypto-card {
    background: var(--bg-white);
    padding: 2rem 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.crypto-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.crypto-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: 700;
    color: white;
    font-size: 0.8rem;
}

.crypto-icon.btc { background: #f7931a; }
.crypto-icon.eth { background: #627eea; }
.crypto-icon.usdt { background: #26a17b; }
.crypto-icon.sol { background: #9945ff; }
.crypto-icon.ada { background: #0033ad; }
.crypto-icon.dot { background: #e6007a; }

.crypto-card h5 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.crypto-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.crypto-change {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
}

.crypto-change.positive {
    color: #00d4aa;
    background: rgba(0, 212, 170, 0.1);
}

.crypto-change.negative {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.crypto-change.neutral {
    color: var(--text-light);
    background: rgba(99, 110, 114, 0.1);
}

/* How It Works Section */
.how-it-works-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.how-it-works-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.how-it-works-section > .container > .row:first-child p {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.step-card {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.step-card h4 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.step-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Responsive Design for Buy Crypto */
@media (max-width: 991.98px) {
    .buy-crypto-content h1 {
        font-size: 2.5rem;
    }
    
    .buy-crypto-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-card {
        margin-top: 2rem;
    }
}

@media (max-width: 767.98px) {
    .buy-crypto-content h1 {
        font-size: 2rem;
    }
    
    .buy-crypto-content p {
        font-size: 1rem;
    }
    
    .form-card {
        padding: 2rem;
    }
    
    .payment-method-card {
        margin-bottom: 2rem;
    }
    
    .crypto-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 575.98px) {
    .buy-crypto-hero-section {
        padding: 100px 0 60px;
    }
    
    .buy-crypto-content h1 {
        font-size: 1.8rem;
    }
    
    .buy-crypto-stats .stat h3 {
        font-size: 1.5rem;
    }
    
    .form-card {
        padding: 1.5rem;
    }
    
    .payment-methods-section h2,
    .popular-crypto-section h2,
    .how-it-works-section h2 {
        font-size: 2rem;
    }
}

/* Form Validation Styles */
.form-control.is-invalid {
    border-color: #e74c3c;
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.25);
}

.form-control.is-valid {
    border-color: #00d4aa;
    box-shadow: 0 0 0 0.2rem rgba(0, 212, 170, 0.25);
}

.invalid-feedback {
    display: block;
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.valid-feedback {
    display: block;
    color: #00d4aa;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Loading States */
.form-card.loading {
    position: relative;
    pointer-events: none;
}

.form-card.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
}

.form-card.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
}

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

/* Success Animation */
.form-card.success {
    animation: successPulse 0.5s ease-out;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Payment Method Card Hover Effects */
.payment-method-card:hover .payment-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Crypto Card Hover Effects */
.crypto-card:hover .crypto-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Step Card Hover Effects */
.step-card:hover .step-number {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Form Input Focus Effects */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 212, 170, 0.25);
}

/* Button Hover Effects */
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Exchange Rate Updates */
.exchange-rate.updating {
    animation: exchangeRateUpdate 0.5s ease;
}

@keyframes exchangeRateUpdate {
    0%, 100% { background: var(--bg-light); }
    50% { background: rgba(0, 212, 170, 0.1); }
} 