/* ============================================================================
   WALLET SHOWCASE STYLES - Mobile-First Design
   ============================================================================ */

/* Wallet Showcase Card Content */
.wallet-showcase-content {
    padding: 0;
}

.wallet-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.wallet-intro h4 {
    color: var(--gold-400);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.wallet-intro p {
    color: var(--slate-300);
    line-height: 1.6;
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Wallet Features Grid */
.wallet-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.wallet-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.wallet-feature-item:hover {
    background: rgba(234, 179, 8, 0.08);
    border-color: rgba(234, 179, 8, 0.3);
    transform: translateY(-1px);
}

.wallet-feature-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(234, 179, 8, 0.2);
    border-radius: 10px;
    flex-shrink: 0;
}

.wallet-feature-content {
    flex: 1;
}

.wallet-feature-title {
    color: var(--slate-100);
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.wallet-feature-description {
    color: var(--slate-400);
    font-size: 0.8rem;
    line-height: 1.4;
    margin: 0;
}

/* Demo Phone Preview */
.wallet-demo-preview {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    padding: 1rem;
}

.demo-phone-frame {
    width: 280px;
    height: 500px;
    background: linear-gradient(145deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 25px;
    padding: 15px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.demo-phone-frame::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.demo-phone-frame::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.demo-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--slate-950) 0%, var(--slate-900) 100%);
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Demo Screen Content */
.demo-header {
    background: var(--slate-900);
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    color: var(--slate-400);
    margin-bottom: 0.5rem;
}

.demo-app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.demo-app-title {
    color: var(--gold-400);
    font-weight: 700;
    font-size: 1rem;
}

.demo-balance {
    color: var(--slate-100);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
}

.demo-content {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.demo-balance-card {
    background: rgba(234, 179, 8, 0.15);
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
}

.demo-balance-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold-400);
    font-family: var(--font-mono);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.demo-balance-label {
    color: var(--slate-400);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.demo-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
}

.demo-action-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.5rem;
    text-align: center;
    color: var(--slate-100);
    font-size: 0.65rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.demo-action-btn:hover {
    background: rgba(234, 179, 8, 0.2);
    border-color: rgba(234, 179, 8, 0.4);
}

.demo-transactions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.demo-transaction {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.demo-tx-icon {
    font-size: 0.9rem;
    width: 24px;
    text-align: center;
}

.demo-tx-desc {
    flex: 1;
    color: var(--slate-300);
    font-size: 0.65rem;
}

.demo-tx-amount {
    color: #22c55e;
    font-size: 0.65rem;
    font-weight: 600;
    font-family: var(--font-mono);
}

.demo-tabs {
    background: var(--slate-800);
    display: flex;
    padding: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-tab {
    flex: 1;
    padding: 0.5rem;
    text-align: center;
    font-size: 1rem;
    background: none;
    border: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    color: var(--slate-400);
}

.demo-tab.active {
    background: rgba(234, 179, 8, 0.2);
    color: var(--gold-400);
}

/* Pulse Animation */
.demo-pulse-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 540px;
    border: 2px solid var(--gold-400);
    border-radius: 30px;
    opacity: 0.3;
    pointer-events: none;
    animation: demoPhonePulse 3s ease-in-out infinite;
}

@keyframes demoPhonePulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.6;
    }
}

/* Wallet Showcase Buttons */
.wallet-showcase-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2rem;
}

.wallet-showcase-buttons .btn {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
    gap: 0.5rem;
}

/* Interactive Elements */
.demo-action-btn {
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.demo-action-btn:active {
    transform: scale(0.95);
}

.demo-tab {
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.demo-tab:active {
    transform: scale(0.95);
}

/* Screen glow effect */
.demo-screen::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(45deg, 
        rgba(234, 179, 8, 0.1) 0%, 
        transparent 25%, 
        transparent 75%, 
        rgba(234, 179, 8, 0.1) 100%);
    border-radius: 15px;
    opacity: 0;
    animation: screenGlow 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes screenGlow {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.5; }
}

/* Responsive Design for Tablet */
@media (min-width: 768px) {
    .wallet-features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }
    
    .wallet-feature-item {
        padding: 1.25rem;
    }
    
    .wallet-feature-icon {
        width: 45px;
        height: 45px;
        font-size: 1.75rem;
    }
    
    .wallet-feature-title {
        font-size: 1rem;
    }
    
    .wallet-feature-description {
        font-size: 0.875rem;
    }
    
    .demo-phone-frame {
        width: 320px;
        height: 580px;
    }
    
    .wallet-showcase-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }
    
    .wallet-showcase-buttons .btn {
        width: auto;
        min-width: 180px;
    }
}

/* Responsive Design for Desktop */
@media (min-width: 1024px) {
    .wallet-features-grid {
        gap: 1.5rem;
    }
    
    .wallet-feature-item {
        padding: 1.5rem;
    }
    
    .wallet-feature-icon {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
    
    .wallet-feature-title {
        font-size: 1.1rem;
    }
    
    .wallet-feature-description {
        font-size: 0.9rem;
    }
    
    .demo-phone-frame {
        width: 360px;
        height: 640px;
        padding: 20px;
    }
    
    .demo-content {
        padding: 1.25rem;
        gap: 1.25rem;
    }
    
    .demo-balance-card {
        padding: 1.25rem;
    }
    
    .demo-balance-amount {
        font-size: 1.75rem;
    }
    
    .demo-actions {
        gap: 0.75rem;
    }
    
    .demo-action-btn {
        padding: 0.75rem;
        font-size: 0.75rem;
    }
    
    .demo-transaction {
        padding: 0.75rem;
    }
    
    .wallet-showcase-buttons .btn {
        min-width: 200px;
        padding: 1.125rem 2rem;
        font-size: 1rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .demo-phone-frame {
        box-shadow: 
            0 25px 50px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
    .demo-phone-frame {
        background: linear-gradient(145deg, #0a0a0a 0%, #1a1a1a 100%);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .demo-pulse-animation,
    .demo-screen::before {
        animation: none;
    }
    
    .wallet-feature-item,
    .demo-action-btn,
    .demo-tab {
        transition: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .wallet-feature-item {
        border-color: rgba(255, 255, 255, 0.3);
    }
    
    .demo-phone-frame {
        border: 2px solid rgba(255, 255, 255, 0.5);
    }
    
    .demo-action-btn {
        border-color: rgba(255, 255, 255, 0.4);
    }
}

/* Loading states */
.wallet-showcase-loading {
    opacity: 0.7;
    pointer-events: none;
}

.wallet-showcase-loading .demo-screen {
    position: relative;
}

.wallet-showcase-loading .demo-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Focus states for accessibility */
.wallet-showcase-buttons .btn:focus,
.demo-action-btn:focus,
.demo-tab:focus {
    outline: 2px solid var(--gold-400);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .wallet-demo-preview,
    .demo-pulse-animation {
        display: none;
    }
    
    .wallet-features-grid {
        break-inside: avoid;
    }
}