/* ==========================================================================
   MOBILE-ONLY DEDICATED STYLESHEET (mobile.css)
   Non-containerized, fluid editorial layout designed for mobile ergonomics.
   Tight minimal side padding to maximize screen estate.
   No overriding of desktop CSS rules.
   ========================================================================== */

/* Mobile View Container - Fluid, snug & open */
#mobile-view {
    width: 100%;
    margin: 0 auto;
    padding-left: 0.75rem;  /* Snug minimal side padding */
    padding-right: 0.75rem; /* Snug minimal side padding */
    padding-top: 0.75rem;
    padding-bottom: 5.5rem; /* Space for attached bottom navbar */
}

/* Fluid Section Spacing */
.mob-section {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

/* Subtle Section Divider */
.mob-divider {
    height: 1px;
    background-color: #e4e4e7;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
}

html.dark .mob-divider {
    background-color: #27272a;
}

/* Mobile Icon-Only Button */
.mob-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.375rem;
    height: 2.375rem;
    border-radius: 0.75rem;
    background-color: #f4f4f5;
    border: 1px solid #e4e4e7;
    color: #18181b;
    transition: all 0.15s ease;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
}

html.dark .mob-icon-btn {
    background-color: #141417;
    border-color: #27272a;
    color: #f4f4f5;
}

.mob-icon-btn:active {
    transform: scale(0.92);
}

/* Mobile Action Button Base */
.mob-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    border-radius: 0.75rem;
    font-family: 'Mali', cursive, sans-serif;
    font-weight: 600;
    font-size: 0.8125rem;
    transition: all 0.15s ease;
    cursor: pointer;
    user-select: none;
    text-decoration: none;
    min-height: 42px;
}

.mob-btn:active {
    transform: scale(0.97);
}

.mob-btn-primary {
    background-color: #09090b;
    color: #ffffff;
    border: 1px solid #09090b;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

html.dark .mob-btn-primary {
    background-color: #f4f4f5;
    color: #09090b;
    border-color: #ffffff;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.08);
}

.mob-btn-secondary {
    background-color: #f4f4f5;
    color: #18181b;
    border: 1px solid #e4e4e7;
}

html.dark .mob-btn-secondary {
    background-color: #18181c;
    color: #f4f4f5;
    border-color: #2e2e35;
}

/* Mobile Minimal Tag / Chip */
.mob-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.3rem 0.55rem;
    border-radius: 0.5rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: #f4f4f5;
    border: 1px solid #e4e4e7;
    color: #3f3f46;
}

html.dark .mob-chip {
    background-color: #141417;
    border-color: #27272a;
    color: #a1a1aa;
}

/* Edge-to-Edge Attached Bottom Navigation Bar */
.mob-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 0.25rem;
    padding: 0.4rem 0.5rem;
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid #e4e4e7;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.04);
}

html.dark .mob-bottom-bar {
    background: rgba(10, 10, 12, 0.96);
    border-top-color: #27272a;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.5);
}

/* Mobile Bottom Dock Item */
.mob-dock-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex: 1;
    padding: 0.3rem 0.2rem;
    border-radius: 0.5rem;
    color: #71717a;
    font-size: 0.625rem;
    font-family: 'Mali', cursive, sans-serif;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
    cursor: pointer;
    user-select: none;
}

html.dark .mob-dock-btn {
    color: #a1a1aa;
}

.mob-dock-btn:active {
    transform: scale(0.92);
    color: #09090b;
}

html.dark .mob-dock-btn:active {
    color: #ffffff;
}

/* Mobile Section Header Title */
.mob-header-title {
    font-family: 'Mali', cursive, sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #09090b;
    margin-bottom: 0.75rem;
}

html.dark .mob-header-title {
    color: #ffffff;
}

/* Progress bar in dark/light */
.mob-bar-track {
    width: 100%;
    height: 0.375rem;
    border-radius: 9999px;
    background-color: #e4e4e7;
    overflow: hidden;
}

html.dark .mob-bar-track {
    background-color: #27272a;
}
