/* Arth Parkash ePaper - Global Navigation & SPA Framework */

:root {
    --primary: #FF6B00;
    --primary-dark: #D32F2F;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #ffffff;
    --bg-gray: #f9fafb;
    --border: #e5e7eb;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg-gray);
}

/* ============================================
   RESPONSIVE NAVIGATION HEADER
   ============================================ */

.main-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.logo-section img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.logo-text p {
    font-size: 11px;
    opacity: 0.85;
    margin: 0;
}

/* Desktop Navigation */
.nav-menu {
    display: flex;
    gap: 5px;
    align-items: center;
}

.nav-menu a, .nav-menu button {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 14px;
    border: none;
    background: transparent;
    cursor: pointer;
}

.nav-menu a:hover, .nav-menu button:hover {
    background: rgba(255,255,255,0.2);
}

.nav-menu a.active {
    background: rgba(255,255,255,0.25);
}

/* Language Selector */
.lang-selector {
    display: flex;
    gap: 3px;
    padding: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
}

.lang-selector button {
    padding: 6px 12px;
    font-size: 13px;
}

.lang-selector button.active {
    background: rgba(255,255,255,0.3);
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 5px;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a, .mobile-menu button {
    display: block;
    color: white;
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 8px;
    font-weight: 500;
    border: none;
    background: rgba(255,255,255,0.1);
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 15px;
}

.mobile-menu a:hover, .mobile-menu button:hover {
    background: rgba(255,255,255,0.2);
}

/* ============================================
   CATEGORY GRID (CLICKABLE)
   ============================================ */

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.category-card {
    background: white;
    border-radius: 10px;
    padding: 25px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid var(--border);
    text-decoration: none;
    color: var(--text);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 107, 0, 0.2);
    border-color: var(--primary);
}

.category-card .icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.category-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.category-card p {
    font-size: 13px;
    color: var(--text-light);
}

/* ============================================
   MODAL / DRAWER SYSTEM (SPA)
   ============================================ */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    margin: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-gray);
    border-radius: 12px 12px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 22px;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: var(--text-light);
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text);
}

.modal-body {
    padding: 30px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .logo-text h1 {
        font-size: 20px;
    }
    
    .logo-text p {
        display: none;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .category-card {
        padding: 20px 15px;
    }
    
    .modal-content {
        margin: 10px;
        max-height: 95vh;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
}

.card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
