/**
 * G.A.S. Token Trading Landing - Styles
 * Futuristic space-themed design
 */

.gas-landing-wrapper {
    position: relative;
    min-height: 100vh;
    font-family: 'Orbitron', sans-serif;
    color: #00ff88;
}

/* =============================
   Space Background
============================= */
.gas-space-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #0a0e27 0%, #1a1f3a 50%, #0f0f23 100%);
    z-index: -1;
    overflow: hidden;
}

.gas-space-bg .stars {
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent),
        radial-gradient(1px 1px at 33% 80%, white, transparent);
    background-size: 200px 200px, 300px 300px, 150px 150px, 250px 250px, 180px 180px, 220px 220px;
    background-position: 0 0, 40px 60px, 130px 270px, 70px 100px, 150px 50px, 200px 180px;
    animation: starfield 120s linear infinite;
    opacity: 0.8;
}

@keyframes starfield {
    from { transform: translateY(0); }
    to { transform: translateY(-50%); }
}

.gas-space-bg .nebula {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 30% 40%, rgba(138, 43, 226, 0.15), transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(0, 255, 136, 0.1), transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(0, 150, 255, 0.12), transparent 50%);
    animation: nebula 30s ease-in-out infinite alternate;
}

@keyframes nebula {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

/* =============================
   Header
============================= */
.gas-header {
    padding: 40px 20px;
    text-align: center;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #00ff88;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
}

.gas-header h1 {
    font-size: 48px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.8);
    margin: 0 0 10px 0;
}

.gas-header .tagline {
    color: #00aaff;
    font-size: 18px;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 170, 255, 0.6);
    margin: 0;
}

/* =============================
   Container & Grid
============================= */
.gas-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.gas-trading-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.gas-card-wide {
    grid-column: 1 / -1;
}

/* =============================
   Purchase Options
============================= */
.gas-purchase-options {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.gas-purchase-method {
    background: rgba(0, 170, 255, 0.05);
    border: 2px solid rgba(0, 170, 255, 0.3);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.gas-purchase-method:hover {
    border-color: #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

.purchase-method-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
}

.method-icon {
    font-size: 36px;
    min-width: 50px;
    text-align: center;
}

.method-info {
    flex: 1;
}

.method-info h3 {
    margin: 0 0 5px 0;
    color: #00ff88;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.method-info p {
    margin: 0;
    color: #00aaff;
    font-size: 12px;
    opacity: 0.9;
}

.method-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.method-badge.instant {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    border: 1px solid #00ff88;
    animation: badgePulse 2s ease-in-out infinite;
}

.method-badge.manual {
    background: rgba(255, 170, 0, 0.2);
    color: #ffaa00;
    border: 1px solid #ffaa00;
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.purchase-divider {
    text-align: center;
    position: relative;
    margin: 20px 0;
}

.purchase-divider span {
    background: rgba(10, 14, 39, 0.9);
    padding: 10px 20px;
    color: #00aaff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

.purchase-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.3), transparent);
}

.input-note {
    font-size: 11px;
    color: #00aaff;
    opacity: 0.8;
    margin: 5px 0 0 0;
}

.instant-badge {
    color: #00ff88 !important;
    font-weight: 700;
}

.manual-badge {
    color: #ffaa00 !important;
    font-weight: 700;
}

.summary-row.important {
    background: rgba(255, 170, 0, 0.1);
    padding: 10px;
    border-radius: 6px;
    border-left: 3px solid #ffaa00;
}

.manual-btn {
    background: linear-gradient(135deg, #ffaa00 0%, #ff8800 100%);
    box-shadow: 0 4px 15px rgba(255, 170, 0, 0.4);
}

.manual-btn:hover {
    box-shadow: 0 6px 20px rgba(255, 170, 0, 0.6);
}

/* =============================
   Currency Selector
============================= */
.currency-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 25px;
}

.currency-option {
    background: rgba(0, 170, 255, 0.1);
    border: 2px solid rgba(0, 170, 255, 0.3);
    border-radius: 8px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.currency-option:hover {
    border-color: #00aaff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 170, 255, 0.3);
}

.currency-option.active {
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.15);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.currency-option.active::after {
    content: '✓';
    position: absolute;
    top: 5px;
    right: 8px;
    color: #00ff88;
    font-weight: 900;
    font-size: 16px;
}

.currency-icon {
    display: block;
    font-size: 24px;
    margin-bottom: 5px;
    color: #00aaff;
}

.currency-option.active .currency-icon {
    color: #00ff88;
}

.currency-name {
    display: block;
    font-weight: 700;
    font-size: 14px;
    color: #00aaff;
    margin-bottom: 3px;
}

.currency-option.active .currency-name {
    color: #00ff88;
}

.currency-price {
    display: block;
    font-size: 10px;
    color: #00aaff;
    opacity: 0.8;
}

.currency-option.active .currency-price {
    color: #00ff88;
    opacity: 1;
}

/* =============================
   Input Groups & Conversion
============================= */
.input-with-label {
    margin-bottom: 15px;
}

.input-currency-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-currency-group input {
    flex: 1;
    padding-right: 80px;
}

.selected-currency {
    position: absolute;
    right: 15px;
    font-weight: 700;
    color: #00aaff;
    font-size: 14px;
    text-transform: uppercase;
    pointer-events: none;
}

.conversion-arrow {
    text-align: center;
    font-size: 32px;
    color: #00ff88;
    margin: 10px 0;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* =============================
   Transaction Summary
============================= */
.transaction-summary {
    background: rgba(0, 170, 255, 0.05);
    border: 1px solid rgba(0, 170, 255, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: #00aaff;
}

.summary-row:last-child {
    margin-bottom: 0;
}

.summary-row span:first-child {
    color: #00aaff;
}

.summary-row span:last-child {
    color: #00ff88;
    font-weight: 700;
}

/* =============================
   Cards
============================= */
.gas-card {
    background: rgba(10, 14, 39, 0.85);
    border: 2px solid #00ff88;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 
        0 0 30px rgba(0, 255, 136, 0.3),
        inset 0 0 20px rgba(0, 255, 136, 0.05);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.gas-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 50px rgba(0, 255, 136, 0.5);
}

.gas-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00ff88, #00aaff, #8a2be2, #00ff88);
    background-size: 400% 400%;
    border-radius: 12px;
    z-index: -1;
    opacity: 0;
    animation: borderGlow 3s ease infinite;
}

.gas-card:hover::before {
    opacity: 0.5;
}

@keyframes borderGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.card-title {
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 20px 0;
    text-align: center;
    color: #00ff88;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
}

/* =============================
   Price Display
============================= */
.price-display {
    text-align: center;
    padding: 30px;
    margin-bottom: 20px;
    background: rgba(0, 255, 136, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.current-price {
    font-size: 48px;
    font-weight: 900;
    color: #00ff88;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.8);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.price-label {
    color: #00aaff;
    font-size: 14px;
    margin-top: 10px;
    letter-spacing: 2px;
}

/* =============================
   Stats Grid
============================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.stat-box {
    background: rgba(0, 170, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(0, 170, 255, 0.3);
    text-align: center;
}

.stat-label {
    font-size: 12px;
    color: #00aaff;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #00ff88;
}

/* =============================
   Wallet Section
============================= */
.wallet-section {
    background: rgba(138, 43, 226, 0.1);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.wallet-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff4444;
}

.status-indicator.connected {
    background: #00ff88;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.wallet-address {
    font-family: monospace;
    color: #00aaff;
    font-size: 12px;
    word-break: break-all;
}

#gasWalletInfo p {
    margin: 5px 0;
    color: #00ff88;
}

#gasWalletInfo strong {
    color: #00aaff;
}

/* =============================
   Forms
============================= */
.trading-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.trading-form label {
    color: #00aaff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.trading-form input {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid #00ff88;
    border-radius: 6px;
    padding: 12px 15px;
    color: #00ff88;
    font-family: 'Orbitron', monospace;
    font-size: 16px;
    transition: all 0.3s ease;
}

.trading-form input:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
    transform: scale(1.02);
}

.trading-form input[readonly] {
    background: rgba(0, 255, 136, 0.05);
    cursor: not-allowed;
}

/* =============================
   Buttons
============================= */
.gas-btn {
    background: linear-gradient(135deg, #00ff88 0%, #00aaff 100%);
    color: #0a0e27;
    border: none;
    padding: 15px 30px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.4);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.gas-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.gas-btn:hover::before {
    left: 100%;
}

.gas-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.6);
}

.gas-btn:active {
    transform: translateY(0);
}

.gas-btn:disabled {
    background: linear-gradient(135deg, #666 0%, #444 100%);
    cursor: not-allowed;
    opacity: 0.5;
}

.disconnect-btn {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.4);
    margin-top: 10px;
}

.disconnect-btn:hover {
    box-shadow: 0 6px 20px rgba(255, 68, 68, 0.6);
}

/* =============================
   Result Messages
============================= */
.result-message {
    margin-top: 15px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    display: none;
}

.result-message.success {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid #00ff88;
    color: #00ff88;
    display: block;
}

.result-message.error {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid #ff4444;
    color: #ff4444;
    display: block;
}

/* =============================
   Responsive Design
============================= */
@media (max-width: 768px) {
    .gas-header h1 {
        font-size: 32px;
        letter-spacing: 2px;
    }

    .gas-header .tagline {
        font-size: 14px;
    }

    .gas-trading-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gas-card {
        padding: 20px;
    }

    .current-price {
        font-size: 36px;
    }

    .card-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .gas-header {
        padding: 30px 15px;
    }

    .gas-header h1 {
        font-size: 24px;
    }

    .gas-container {
        padding: 20px 10px;
    }

    .gas-card {
        padding: 15px;
    }

    .current-price {
        font-size: 28px;
    }

    .gas-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* =============================
   Wallet Selection Modal
============================= */
.gas-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gas-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.gas-modal-content {
    position: relative;
    background: rgba(10, 14, 39, 0.95);
    border: 2px solid #00ff88;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 0 50px rgba(0, 255, 136, 0.5);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gas-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
}

.gas-modal-header h3 {
    margin: 0;
    color: #00ff88;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.gas-modal-close {
    background: none;
    border: none;
    color: #00aaff;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: auto;
    transition: color 0.3s ease;
}

.gas-modal-close:hover {
    color: #00ff88;
}

.gas-modal-body {
    padding: 30px;
}

.gas-wallet-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gas-wallet-option {
    display: flex;
    align-items: center;
    padding: 20px;
    background: rgba(0, 170, 255, 0.1);
    border: 2px solid rgba(0, 170, 255, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
}

.gas-wallet-option:hover {
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.gas-wallet-icon {
    font-size: 36px;
    margin-right: 15px;
}

.gas-wallet-info {
    flex: 1;
}

.gas-wallet-name {
    display: block;
    font-weight: 700;
    font-size: 16px;
    color: #00ff88;
    margin-bottom: 4px;
}

.gas-wallet-desc {
    font-size: 12px;
    color: #00aaff;
    opacity: 0.8;
}

.gas-wallet-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.gas-badge-popular {
    background: #00ff88;
    color: #0a0e27;
}

.gas-badge-qr {
    background: #ffd43b;
    color: #0a0e27;
}

.gas-modal-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 255, 136, 0.2);
    text-align: center;
}

.gas-modal-footer p {
    font-size: 12px;
    color: #00aaff;
    margin: 0;
}

.gas-modal-footer a {
    color: #00ff88;
    text-decoration: none;
    font-weight: 600;
}

.gas-modal-footer a:hover {
    text-decoration: underline;
}
