/**
 * Mall Core: Frontend Overrides & Block Styles
 */

/* ============================================================================
   TURNSTILE SECURITY
   ============================================================================ */
.mall-turnstile-container {
    margin: 15px 0 20px 0;
    min-height: 65px;
}
.mall-security-warning {
    color: #d32f2f;
    font-weight: bold;
    margin: 10px 0;
}

/* ============================================================================
   GUTENBERG EDITOR PREVIEWS
   ============================================================================ */
.mall-topology-editor-preview {
    background: #1a0f2e; 
    padding: 30px; 
    border-radius: 12px; 
    color: #fff; 
    border: 2px dashed #c71585;
    text-align: center;
    font-family: sans-serif;
}
.mall-topology-editor-title {
    margin: 0 0 10px 0; 
    color: #00ff96;
}
.mall-topology-editor-subtitle {
    font-size: 13px; 
    color: #ddd; 
    margin: 0;
}

/* ============================================================================
   TOPOLOGY GRID BLOCK
   ============================================================================ */
.mall-topology-wrapper {
    background: #1a0f2e;
    padding: 40px 20px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 30px auto;
    max-width: 1200px;
}
.mall-topology-header {
    text-align: center;
    margin-bottom: 35px;
}
.mall-topology-title {
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 900;
    margin: 0 0 10px 0;
    text-shadow: 0 0 12px rgba(199,21,133,0.6);
}
.mall-topology-subtitle {
    color: #a5b4fc;
    font-size: 1rem;
    margin: 0;
}
.mall-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}
.mall-node-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 25px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.mall-node-card:hover {
    transform: translateY(-5px);
    border-color: #c71585;
    box-shadow: 0 10px 25px rgba(199,21,133,0.2);
}
.mall-node-title {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 15px 0;
}
.mall-meta-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: #cbd5e1;
}
.mall-status-row {
    align-items: center;
}
.mall-status-badge {
    background: rgba(0, 255, 150, 0.15);
    color: #00ff96;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(0, 255, 150, 0.3);
}
.mall-node-btn {
    background: #6a4c93;
    color: #fff;
    text-decoration: none;
    text-align: center;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.9rem;
    margin-top: 15px;
    display: block;
    transition: background 0.2s;
}
.mall-node-btn:hover {
    background: #c71585;
    color: #fff;
}

/* ============================================================================
   GLOBAL MOBILE PERFORMANCE OVERRIDE
   ============================================================================ */
@media (max-width: 768px) {
    /* * Target all frosted glass theme components across the network.
     * Prevents extreme battery drain and scroll lag on older mobile GPUs.
     */
    #page, 
    .layer-3-card, 
    .faa-universal-card, 
    .mall-node-card,
    .faa-single-product-purchase-card,
    .card-inner-frost {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(245, 245, 245, 0.95) !important; /* Switch to nearly opaque solid */
    }
}