/*
Theme Name: Train Dekho App
Theme URI: https://traindekho.in
Author: Lead Developer (Gemini)
Description: Ultra-fast, SEO-friendly, Custom PWA theme for TrainDekho.
Version: 1.0
*/

:root {
    --primary-color: #E91E63; /* Premium App Pink/Red */
    --bg-color: #F4F5F7;
    --text-main: #111827;
    --text-muted: #6B7280;
    --card-bg: #FFFFFF;
    --border-color: #E5E7EB;
}

* { box-sizing: border-box; }

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 80px; /* Bottom Nav Space */
}

/* App Container Layout */
.app-wrapper {
    max-width: 480px; /* Strict App-like width for Desktop */
    margin: 0 auto;
    background: var(--card-bg);
    min-height: 100vh;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow-x: hidden;
}

/* App Header */
.app-header {
    background: var(--card-bg);
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-header h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
}

/* Bottom Navigation Bar */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    padding: 12px 0 20px 0; /* Extra padding for modern phones */
    z-index: 100;
}

.bottom-nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.bottom-nav a.active { color: var(--primary-color); }

/* Skeleton Loading Animation */
.skeleton {
    background: #e5e7eb;
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    background-size: 200% 100%;
    animation: 1.5s shine linear infinite;
    border-radius: 8px;
}
@keyframes shine { to { background-position-x: -200%; } }