/* assets/css/mobile.css */
/* Mobile First Layout & Bottom Tab Navigation Rules */

/* Floating Bottom Navigation Bar */
.bottom-nav {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 30px);
    max-width: 470px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(15px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 10px 5px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 400;
    transition: var(--transition);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 600;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 12px;
    transition: var(--transition);
    cursor: pointer;
}

.bottom-nav-item:hover {
    color: var(--text-primary);
}

.bottom-nav-item.active {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}

.bottom-nav-icon {
    font-size: 1.25rem;
}

/* Page spacing for bottom nav */
.page-content {
    padding: 20px;
    flex-grow: 1;
}

/* QR Scanner Viewport CSS */
.scanner-viewport-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    border: 2px dashed #334155;
    margin-bottom: 20px;
}

.scanner-overlay-aim {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    border: 2px solid var(--primary);
    border-radius: 16px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
    z-index: 10;
    pointer-events: none;
}

.scanner-laser {
    position: absolute;
    top: 20%;
    left: 20%;
    width: 60%;
    height: 2px;
    background: var(--neon-pink);
    box-shadow: 0 0 12px var(--neon-pink);
    animation: scannerScan 2s linear infinite;
    z-index: 11;
    pointer-events: none;
}

@keyframes scannerScan {
    0% { top: 20%; }
    50% { top: 80%; }
    100% { top: 20%; }
}

/* Quick utility styles */
.text-center { text-align: center; }
.mt-1 { margin-top: 5px; }
.mt-2 { margin-top: 10px; }
.mt-3 { margin-top: 15px; }
.mt-4 { margin-top: 20px; }
.mb-1 { margin-bottom: 5px; }
.mb-2 { margin-bottom: 10px; }
.mb-3 { margin-bottom: 15px; }
.mb-4 { margin-bottom: 20px; }

.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-secondary-label { color: var(--text-secondary); }
.font-bold { font-weight: 700; }

.badge-pill {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
}

/* Small screen tweaks */
@media (max-width: 360px) {
    .bottom-nav {
        padding: 5px 2px;
    }
    
    .bottom-nav-item {
        padding: 4px 6px;
        font-size: 0.65rem;
    }
    
    .bottom-nav-icon {
        font-size: 1.1rem;
    }
}
