/* Mobile-First Student Interface Styles */

/* Enhanced Mobile Design Tokens */
:root {
    --mobile-header-height: 56px;
    --mobile-nav-height: 60px;
    --mobile-spacing: 16px;
    --mobile-card-radius: 16px;
    --mobile-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --mobile-shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Mobile Header - App-like */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--mobile-header-height);
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-dark) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--mobile-spacing);
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-header .logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 700;
}

.mobile-header .logo i {
    font-size: 1.5rem;
}

.mobile-header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.mobile-icon-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    /* Ensure badge positioning relative to button */
}

.mobile-icon-btn:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.25);
}

.mobile-icon-btn .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--error);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-orange);
    /* Add border to separate from icon */
    box-sizing: content-box;
}

/* Mobile Content Area */
.mobile-content {
    margin-top: var(--mobile-header-height);
    margin-bottom: var(--mobile-nav-height);
    padding: var(--mobile-spacing);
    min-height: calc(100vh - var(--mobile-header-height) - var(--mobile-nav-height));
}

/* Mobile Category Pills */
.mobile-categories {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: var(--mobile-spacing) 0;
    margin: 0 calc(-1 * var(--mobile-spacing));
    padding-left: var(--mobile-spacing);
    padding-right: var(--mobile-spacing);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.mobile-categories::-webkit-scrollbar {
    display: none;
}

.mobile-category-pill {
    flex-shrink: 0;
    padding: 8px 20px;
    border-radius: 20px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    color: var(--gray-700);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.mobile-category-pill.active {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    color: var(--white);
}

.mobile-category-pill i {
    margin-right: 6px;
}

/* Mobile Food Cards */
.mobile-food-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--mobile-spacing);
    margin-top: var(--mobile-spacing);
}

.mobile-food-card {
    background: var(--white);
    border-radius: var(--mobile-card-radius);
    overflow: hidden;
    box-shadow: var(--mobile-shadow);
    display: flex;
    gap: 12px;
    padding: 12px;
    transition: all var(--transition-base);
}

.mobile-food-card:active {
    transform: scale(0.98);
    box-shadow: var(--mobile-shadow-lg);
}

.mobile-food-image {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.mobile-food-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mobile-food-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 4px 0;
}

.mobile-food-desc {
    font-size: 0.75rem;
    color: var(--gray-600);
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mobile-food-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--gray-500);
}

.mobile-food-meta i {
    margin-right: 4px;
}

.mobile-food-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.mobile-food-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-orange);
}

.mobile-add-btn {
    background: var(--primary-orange);
    color: var(--white);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.mobile-add-btn:active {
    transform: scale(0.9);
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--mobile-nav-height);
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}

.mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px;
    color: var(--gray-500);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
}

.mobile-nav-item i {
    font-size: 1.5rem;
}

.mobile-nav-item.active {
    color: var(--primary-orange);
}

.mobile-nav-item.active i {
    transform: scale(1.1);
}

/* Mobile FAB (Floating Action Button) */
.mobile-fab {
    position: fixed;
    bottom: calc(var(--mobile-nav-height) + 16px);
    right: 16px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-dark) 100%);
    color: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.4);
    z-index: 999;
    transition: all var(--transition-base);
}

.mobile-fab:active {
    transform: scale(0.95);
}

.mobile-fab .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--error);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 12px;
    min-width: 24px;
    text-align: center;
}

/* Mobile Order Card */
.mobile-order-card {
    background: var(--white);
    border-radius: var(--mobile-card-radius);
    padding: 16px;
    margin-bottom: var(--mobile-spacing);
    box-shadow: var(--mobile-shadow);
}

.mobile-order-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-100);
}

.mobile-order-number {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
}

.mobile-order-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.mobile-order-status.ordered {
    background: var(--info-light);
    color: var(--info);
}

.mobile-order-status.preparing {
    background: var(--warning-light);
    color: var(--warning);
}

.mobile-order-status.ready {
    background: var(--success-light);
    color: var(--success);
}

/* Mobile Empty State */
.mobile-empty-state {
    text-align: center;
    padding: 48px 24px;
}

.mobile-empty-state i {
    font-size: 4rem;
    color: var(--gray-300);
    margin-bottom: 16px;
}

.mobile-empty-state h3 {
    font-size: 1.25rem;
    color: var(--gray-700);
    margin: 0 0 8px 0;
}

.mobile-empty-state p {
    color: var(--gray-500);
    margin: 0;
}

/* Mobile Pull to Refresh Indicator */
.mobile-pull-indicator {
    text-align: center;
    padding: 12px;
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .mobile-food-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .mobile-content {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
}