/* css/global.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* আপনার নির্দেশ অনুযায়ী বাংলা টেক্সটের জন্য Kalpurush ফন্ট রাখা হয়েছে */
    font-family: 'Kalpurush', 'Inter', sans-serif; 
    -webkit-tap-highlight-color: transparent;
}

body {
    background: #050505; 
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

/* Full Responsive Container */
.app-container {
    width: 100%;
    max-width: 1200px;
    background: #0d0d0f;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 80px; 
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
}

/* Top Bar */
.top-bar {
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(13, 13, 15, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #ff5e62, #ff9966); 
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 18px;
}

.brand-name {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

/* Page Header */
.page-header {
    padding: 24px 24px 0 24px;
}

.page-header h2 {
    font-size: 20px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-header p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 6px;
}

/* Main Content Grid */
.main-content {
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* ─── Categories (Mobile Friendly Horizontal Scroll) ─── */
.categories-container {
    display: flex;
    gap: 12px;
    padding: 12px 24px 16px 24px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.05);
}

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

.pill {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.pill:hover {
    background: rgba(255, 255, 255, 0.1);
}

.pill.active {
    background: linear-gradient(135deg, #7F77DD, #6a62cc);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(127, 119, 221, 0.3);
}

/* ─── Loading State ─── */
.loading-state {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.4);
    grid-column: 1 / -1;
}

.loading-state i {
    font-size: 32px;
    color: #7F77DD;
    display: inline-block;
}

.loading-state p {
    font-size: 14px;
    margin-top: 12px;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 1200px;
    background: rgba(13, 13, 15, 0.95);
    backdrop-filter: blur(15px);
    border-top: 0.5px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-around;
    padding: 12px 0 20px 0;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    gap: 4px;
}

.nav-item i {
    font-size: 24px;
}

.nav-item.active {
    color: #ff5e62;
}

/* ─── Desktop Specific Adjustments ─── */
@media (min-width: 768px) {
    .bottom-nav {
        justify-content: center;
        gap: 60px;
    }
}