/* shared_assets/css/tokens.css
   LonoTV Platform — shared design tokens and chrome.
   Pulled out of the original lonotv mockup so all four apps render
   the same palette, navbar, buttons, and glass-card look. Each app's
   own assets/css/style.css layers domain-specific styles on top. */

:root {
    /* Light Mode Palette — white/near-white throughout, no black
       page backgrounds anywhere on the platform. */
    --bg-dark: #ffffff;
    --bg-card: rgba(0, 0, 0, 0.03);
    --bg-card-hover: rgba(0, 0, 0, 0.05);

    /* Brand Accent Colors — matches the LONO TV logo (lonotv/assets/logo/logo.png): red "TV", pink/magenta "LONO" */
    --accent-primary: #e2231a; /* LONO TV red */
    --accent-secondary: #e6007e; /* LONO TV pink */
    --accent-glow: rgba(226, 35, 26, 0.25);

    /* Semantic colors */
    --color-success: #22c55e;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;

    /* Text Colors — near-black rather than pure #000, easier on the eye at body-copy size */
    --text-primary: #17151d;
    --text-secondary: #6b7280;

    /* UI Elements */
    --border-color: rgba(0, 0, 0, 0.1);
    --glass-blur: blur(12px);

    /* Spacing & Typography */
    --font-main: 'Inter', sans-serif;
    --border-radius-lg: 16px;
    --border-radius-md: 12px;
    --border-radius-sm: 8px;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(226, 35, 26, 0.05), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(230, 0, 126, 0.05), transparent 25%);
}

a {
    color: inherit;
}

/* Glassmorphism Utilities */
.glass-nav {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.06);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.brand-logo {
    height: 32px;
    width: auto;
    display: block;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-block;
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: inherit;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.3s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.04);
}

.btn-large {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
}

.glow-effect:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px var(--accent-glow);
}

/* Typography */
.text-accent {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title {
    text-align: center;
    font-size: 2.25rem;
    margin-bottom: 2.5rem;
}

/* Layout */
.main-container {
    padding-top: 80px;
    padding-bottom: 4rem;
}

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

/* Forms */
.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.form-field label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.form-field input,
.form-field textarea,
.form-field select {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 0.65rem 0.9rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.form-message {
    font-size: 0.9rem;
    margin-top: 0.75rem;
    padding: 0.6rem 0.9rem;
    border-radius: var(--border-radius-sm);
    display: none;
}

.form-message.is-visible {
    display: block;
}

.form-message.is-success {
    background: rgba(34, 197, 94, 0.12);
    color: var(--color-success);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.form-message.is-error {
    background: rgba(239, 68, 68, 0.12);
    color: var(--color-danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Status pill (used for booking/application status) */
.status-pill {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pill.pending, .status-pill.submitted {
    background: rgba(245, 158, 11, 0.15);
    color: var(--color-warning);
}

.status-pill.confirmed, .status-pill.accepted {
    background: rgba(34, 197, 94, 0.15);
    color: var(--color-success);
}

.status-pill.cancelled, .status-pill.rejected {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-danger);
}

/* Loading / empty states used by every app's list views */
.state-message {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem 0;
}

/* An in-progress fetch (e.g. "Loading services…") gets this modifier
   plus a spinner alongside the text — plain unstyled text gives no
   sense that anything is actually happening, which reads as broken on
   a slow connection where the fetch can take a few seconds. Pure CSS,
   no image/icon-font asset, so it costs nothing extra to load. The
   text label stays (not just a bare spinner) for screen readers and
   anyone who can't easily perceive the animation. */
.state-message.is-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .loading-spinner {
        animation: none;
    }
}

/* Footer — shared across every app, each links to its siblings. A
   deliberate black band bookending the light page (like a site's own
   "dark mode corner"), so its text colors are hardcoded light rather
   than pulled from --text-primary/--text-secondary — those are the
   *page's* light-mode colors and would be unreadable here. */
.site-footer {
    background: #0a0a0c;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3rem 5% 2rem;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links h4 {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.footer-links a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    color: #ffffff;
    font-size: 0.95rem;
}

.footer-links a span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    text-align: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
