/* /Components/FloatingAdBar.razor.rz.scp.css */
/* FloatingAdBar.razor.css - Liquid Glass Floating Ad Bar */

/* ============================================
   CONTAINER - Positioning & Layout (OPTIMIZED)
   ============================================ */
.floating-ad-container[b-iuk6yjie1n] {
    position: fixed;
    bottom: max(20px, env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 560px;
    z-index: 1000;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    
    /* Performance optimization */
    will-change: auto; /* Only hint when needed */
    contain: layout style; /* Contain paint calculations */
}

/* ============================================
   GLASS BAR - Main Element (OPTIMIZED)
   ============================================ */
.floating-ad-bar[b-iuk6yjie1n] {
    position: relative;
    background: rgba(12, 20, 38, 0.75);
    
    /* Safari/Edge Fix: Use simpler backdrop-filter */
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    
    /* Safari/Edge Fix: Add explicit isolation and will-change */
    isolation: isolate;
    will-change: transform, opacity;
    
    border-radius: 20px;
    border: 1px solid rgba(56, 189, 248, 0.12);
    padding: 16px 20px;
    overflow: visible; /* Changed from hidden - Safari fix */
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(30px)) {
    .floating-ad-bar[b-iuk6yjie1n] {
        background: rgba(12, 20, 38, 0.95);
    }
}

.floating-ad-bar:hover[b-iuk6yjie1n] {
    background: rgba(15, 25, 45, 0.8);
    border-color: rgba(56, 189, 248, 0.18);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.45),
        0 4px 12px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.floating-ad-container.expanded .floating-ad-bar[b-iuk6yjie1n] {
    background: rgba(12, 20, 38, 0.85);
    border-color: rgba(56, 189, 248, 0.2);
}

/* ============================================
   GLASS LAYERS - Depth & Reflection
   ============================================ */
.ad-glass-layer[b-iuk6yjie1n] {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.07) 0%,
        rgba(56, 189, 248, 0.04) 40%,
        transparent 100%
    );
    pointer-events: none;
    border-radius: 20px 20px 0 0;
}

.ad-highlight-edge[b-iuk6yjie1n] {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.25) 15%,
        rgba(56, 189, 248, 0.4) 30%,
        rgba(34, 211, 238, 0.5) 50%,
        rgba(56, 189, 248, 0.4) 70%,
        rgba(255, 255, 255, 0.25) 85%,
        transparent 100%
    );
    pointer-events: none;
    border-radius: 20px 20px 0 0;
}

/* ============================================
   CONTENT - Text & Layout
   ============================================ */
.ad-content[b-iuk6yjie1n] {
    position: relative;
    z-index: 1;
}

.ad-headline-container[b-iuk6yjie1n] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ad-headline[b-iuk6yjie1n] {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: rgba(240, 249, 255, 0.92);
    line-height: 1.4;
    flex: 1;
    opacity: 1;
    animation: adFadeIn-b-iuk6yjie1n 0.5s ease-out;
}

.ad-expand-indicator[b-iuk6yjie1n] {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(56, 189, 248, 0.1);
    color: rgba(56, 189, 248, 0.7);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ad-expand-indicator.rotated[b-iuk6yjie1n] {
    transform: rotate(180deg);
    background: rgba(34, 211, 238, 0.15);
    color: rgba(34, 211, 238, 0.9);
}

.floating-ad-bar:hover .ad-expand-indicator[b-iuk6yjie1n] {
    background: rgba(56, 189, 248, 0.15);
    color: rgba(56, 189, 248, 0.85);
}

/* ============================================
   DETAIL - Expanded Content
   ============================================ */
.ad-detail-container[b-iuk6yjie1n] {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-ad-container.expanded .ad-detail-container[b-iuk6yjie1n] {
    max-height: 120px;
    opacity: 1;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(56, 189, 248, 0.1);
}

.ad-detail[b-iuk6yjie1n] {
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.55;
    color: rgba(148, 163, 184, 0.95);
    letter-spacing: 0.01em;
}

/* ============================================
   PROGRESS DOTS - Rotation Indicator
   ============================================ */
.ad-progress-container[b-iuk6yjie1n] {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(56, 189, 248, 0.06);
}

.ad-progress-dot[b-iuk6yjie1n] {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.2);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ad-progress-dot.active[b-iuk6yjie1n] {
    background: rgba(34, 211, 238, 0.8);
    box-shadow: 0 0 8px rgba(34, 211, 238, 0.4);
    transform: scale(1.2);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes adFadeIn-b-iuk6yjie1n {
    0% {
        opacity: 0;
        transform: translateY(4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 480px) {
    .floating-ad-container[b-iuk6yjie1n] {
        width: calc(100% - 24px);
        bottom: max(16px, env(safe-area-inset-bottom));
    }
    
    .floating-ad-bar[b-iuk6yjie1n] {
        padding: 14px 16px;
        border-radius: 16px;
    }
    
    .ad-headline[b-iuk6yjie1n] {
        font-size: 13px;
    }
    
    .ad-detail[b-iuk6yjie1n] {
        font-size: 12px;
    }
    
    .ad-glass-layer[b-iuk6yjie1n],
    .ad-highlight-edge[b-iuk6yjie1n] {
        border-radius: 16px 16px 0 0;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .floating-ad-bar[b-iuk6yjie1n],
    .ad-detail-container[b-iuk6yjie1n],
    .ad-expand-indicator[b-iuk6yjie1n],
    .ad-progress-dot[b-iuk6yjie1n],
    .ad-headline[b-iuk6yjie1n] {
        transition: none;
        animation: none;
    }
}
/* /Pages/Home.razor.rz.scp.css */
/* ============================================================
   FIELD LABEL ROW
   Flex row: label on left, lock button on right
   ============================================================ */

.field-label-row[b-kjn4s73vtj] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 24px;
}

/* ============================================================
   LOCK TOGGLE BUTTON
   ============================================================ */

.lock-toggle[b-kjn4s73vtj] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px 4px 8px;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(148, 163, 184, 0.06);
    color: rgba(148, 163, 184, 0.55);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.lock-toggle svg[b-kjn4s73vtj] {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lock-toggle:hover[b-kjn4s73vtj] {
    border-color: rgba(148, 163, 184, 0.35);
    background: rgba(148, 163, 184, 0.1);
    color: rgba(148, 163, 184, 0.8);
}

.lock-toggle:active[b-kjn4s73vtj] {
    transform: scale(0.94);
}

/* ── Locked state ── */

.lock-toggle--locked[b-kjn4s73vtj] {
    border-color: rgba(34, 211, 238, 0.45);
    background: rgba(34, 211, 238, 0.1);
    color: rgba(34, 211, 238, 0.9);
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.15);
}

.lock-toggle--locked svg[b-kjn4s73vtj] {
    transform: scale(1.05);
}

.lock-toggle--locked:hover[b-kjn4s73vtj] {
    border-color: rgba(34, 211, 238, 0.65);
    background: rgba(34, 211, 238, 0.15);
    color: rgba(34, 211, 238, 1);
    box-shadow: 0 0 16px rgba(34, 211, 238, 0.25);
}

/* ============================================================
   FIELD INPUT WRAPPER
   Relative container for locked-field overlay icon
   ============================================================ */

.field-input-wrapper[b-kjn4s73vtj] {
    position: relative;
}

.field-input-wrapper--locked .glass-input[b-kjn4s73vtj] {
    padding-right: 44px;         /* room for the lock icon */
    border-color: rgba(34, 211, 238, 0.3);
    background: rgba(34, 211, 238, 0.04);
    color: rgba(226, 232, 240, 0.7);  /* slightly dimmed but readable */
    cursor: default;
}

/* ── Lock icon overlaid inside the input ── */

.locked-field-indicator[b-kjn4s73vtj] {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(34, 211, 238, 0.55);
    pointer-events: none;
    display: flex;
    align-items: center;
}

.locked-field-indicator svg[b-kjn4s73vtj] {
    width: 15px;
    height: 15px;
}
