/**
 * File: /assets/css/glassmorphism.css
 * Description: Advanced Neural-Glass UI, card structures, depth layers, and hover physics.
 * Dependency: Core CSS variables must be loaded from style.css first.
 */

/* ==========================================================================
   1. ADVANCED NEURAL-GLASS UTILITY
   ========================================================================== */
.neural-glass {
    background: var(--surface-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* The Glass Edge Highlight (Creates the 3D bevel illusion) */
.neural-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.15) 50%, 
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 2;
    pointer-events: none;
}

/* ==========================================================================
   2. BROADBAND PLAN CARDS (The Conversion Grid)
   ========================================================================== */
.plan-card {
    transition: transform var(--anim-speed) cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow var(--anim-speed) ease, 
                border-color var(--anim-speed) ease;
}

.plan-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 242, 255, 0.3); /* Neon Cyan subtle border */
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.6), 
                inset 0 0 20px rgba(0, 242, 255, 0.05);
}

/* Card Inner Elements */
.plan-card .speed-value {
    text-shadow: 0 0 24px rgba(0, 242, 255, 0.4);
}

.plan-card .price-value {
    color: var(--text-primary);
    position: relative;
}

/* OTT Included Badge Pulse */
.badge-ott {
    box-shadow: 0 0 12px rgba(0, 255, 136, 0.2);
    animation: pulseGlow 3s infinite alternate;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 12px rgba(0, 255, 136, 0.2); }
    100% { box-shadow: 0 0 24px rgba(0, 255, 136, 0.5); }
}

/* ==========================================================================
   3. LEAD CAPTURE & CONTACT PANELS
   ========================================================================== */
.contact-info-panel .neural-glass,
.lead-capture-panel .neural-glass {
    height: 100%;
}

.lead-capture-panel .neural-glass {
    background: rgba(10, 15, 28, 0.6); /* Slightly darker for form focus */
    border-color: rgba(255, 255, 255, 0.08);
}

/* Input Fields inside Glass */
.lead-capture-panel .clean-input {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px 8px 0 0; /* Solid top, underlined bottom */
    padding-left: 12px;
    padding-right: 12px;
}

.lead-capture-panel .form-group label {
    left: 12px; /* Adjust label to match input padding */
}

/* ==========================================================================
   4. WIDGETS & MODAL CONTAINERS
   ========================================================================== */
/* Footer Widgets */
.footer-widget.neural-glass {
    border-radius: 12px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.01);
}

/* 404 / Empty State Cards */
.not-found-card {
    border-style: dashed;
    border-width: 2px;
    background: rgba(0, 242, 255, 0.02);
    border-color: rgba(0, 242, 255, 0.1);
}

.not-found-card:hover {
    background: rgba(0, 242, 255, 0.04);
}

/* ==========================================================================
   5. INFRASTRUCTURE STATS BLOCKS
   ========================================================================== */
.stat-block {
    position: relative;
    padding: 24px;
    z-index: 1;
}

/* Faux glass separator lines for the stats grid */
.stat-block::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: var(--border-glass);
}

.stat-block:last-child::after {
    display: none;
}

@media (max-width: 768px) {
    .stat-block::after {
        display: none; /* Remove separators on stacked mobile view */
    }
    
    .stat-block {
        padding: 16px;
        border-bottom: 1px solid var(--border-glass);
    }
    
    .stat-block:last-child {
        border-bottom: none;
    }
}