/* --------------------------------------------------
   GLOBAL PAGE STYLES
-------------------------------------------------- */
body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #f5f5f5;
    color: #222;
}

main.content {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

footer {
    text-align: center;
    padding: 1rem 0;
    font-size: 0.85rem;
    color: #666;
}


/* --------------------------------------------------
   TTC BRAND COLORS
-------------------------------------------------- */
:root {
    --ttc-red: #CC0000;
    --ttc-red-dark: #A30000;
    --text-dark: #222;
    --text-light: #ffffff;
}


/* --------------------------------------------------
   TTC RED HEADER
-------------------------------------------------- */
.site-header {
    background-color: var(--ttc-red);
    border-bottom: 4px solid var(--ttc-red-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: bold;
    letter-spacing: 0.05em;
    color: #ffffff;
}

.nav-bar {
    display: flex;
    gap: 1rem;
}

.nav-bar a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
}

.nav-bar a:hover {
    color: #ffebee;
}

.menu-toggle,
.dark-toggle {
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #ffffff;
}

.menu-toggle {
    display: none;
}


/* --------------------------------------------------
   MOBILE MENU
-------------------------------------------------- */
.mobile-nav {
    display: none;
    flex-direction: column;
    background-color: var(--ttc-red);
    border-top: 3px solid var(--ttc-red-dark);
    padding: 1rem;
}

.mobile-nav a {
    padding: 0.6rem 0;
    text-decoration: none;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
}

.mobile-nav a:hover {
    color: #ffebee;
}

.mobile-nav.open {
    display: flex;
}

@media (max-width: 1180px) {
    .nav-bar { display: none; }
    .menu-toggle { display: block; }
}


/* --------------------------------------------------
   HERO HEADER
-------------------------------------------------- */
.hero-header {
    position: relative;
    height: 360px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/lrt6501.jpg');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.45),
        rgba(0, 0, 0, 0.65)
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

.hero-title {
    font-size: 2.4rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}


/* --------------------------------------------------
   TTC SERVICE STATUS BOX
-------------------------------------------------- */
.ttc-status {
    background: #ffffff;
    border: 3px solid var(--ttc-red);
    padding: 1rem;
    margin: 2rem auto;
    max-width: 900px;
    border-radius: 6px;
}

.ttc-status h2 {
    margin-top: 0;
    color: var(--ttc-red);
    font-size: 1.4rem;
    font-weight: bold;
}

/* Banner */
.ttc-banner {
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    font-size: 1.1rem;
}

/* Lines */
.ttc-line {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #ddd;
}

.ttc-line:last-child {
    border-bottom: none;
}

.ttc-line-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #fff;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ttc-status-normal {
    color: green;
    font-weight: 600;
}

.ttc-status-delay {
    color: var(--ttc-red);
    font-weight: 600;
}

/* Timestamp */
.ttc-timestamp {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #555;
}
/* --------------------------------------------------
   TTC SERVICE STATUS BOX
-------------------------------------------------- */
.ttc-status { ... }
.ttc-banner { ... }
.ttc-line { ... }
.ttc-timestamp { ... }


/* --------------------------------------------------
   DARK MODE
-------------------------------------------------- */
body.dark {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark .site-header {
    background-color: var(--ttc-red);
}

body.dark .logo-text,
body.dark .nav-bar a,
body.dark .menu-toggle,
body.dark .dark-toggle {
    color: #ffffff;
}

body.dark .mobile-nav {
    background-color: var(--ttc-red);
}

body.dark .mobile-nav a {
    color: #ffffff;
}

body.dark .hero-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.55),
        rgba(0, 0, 0, 0.75)
    );
}
