/* =====================================================================
	live_results.css — RaceTiming.gr (nav)
===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700;900&family=Rajdhani:wght@500;600;700&display=swap');

/* ── Custom properties ─────────────────────────────────────────────── */
:root {
    --neon:        #39ff14;
    --neon-dim:    #88ffcc;
    --neon-dark:   #0b8000;
    --bg:          #0a0a0a;
    --card-bg:     rgba(0, 0, 0, 0.65);
    --text:        #c8c8c8;
    --text-bright: #f2f2f2;
}

/* ── Reset ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Body ──────────────────────────────────────────────────────────── */
body {
    font-family: 'Rajdhani', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(160deg, #111 0%, #050505 100%);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* ── Background layer 1: photo ─────────────────────────────────────── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: url('../media/fl.jpg') center / cover no-repeat;
    opacity: 0.07;
    z-index: 0;
    pointer-events: none;
}

/* ── Background layer 2: animated speed lines ──────────────────────── */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: -200px;
    width: calc(100% + 400px);
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
	97deg,
	transparent 0,
	transparent 58px,
	rgba(57, 255, 20, 0.016) 58px,
	rgba(57, 255, 20, 0.016) 60px
    );
    animation: speedLines 12s linear infinite;
}

body > * { position: relative; z-index: 1; }

/* ── Logo section ──────────────────────────────────────────────────── */
.logo-section {
    margin: 40px 0 10px;
    text-align: center;
    animation: fadeUp 0.5s ease both;
}

.logo {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(57, 255, 20, 0.25));
    transition: filter 0.3s;
}

.logo:hover {
    filter: drop-shadow(0 0 20px rgba(57, 255, 20, 0.55));
}

/* ── Event title ───────────────────────────────────────────────────── */
.event-title {
    font-family: 'Orbitron', sans-serif;
    color: var(--neon);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 20px;
    text-shadow: 0 0 14px rgba(57, 255, 20, 0.45);
    text-transform: uppercase;
}

/* ── Event subtitle ────────────────────────────────────────────────── */
.event-title-b {
    font-family: 'Rajdhani', sans-serif;
    color: var(--neon-dim);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: 6px;
    text-transform: uppercase;
}

/* ── Controls block (live_ranking.php) ─────────────────────────────── */
#controls {
    width: 90%;
    max-width: 850px;
    margin: 20px auto 0;
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(57, 255, 20, 0.14);
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    color: var(--text-bright);
}

#timestamp-display { flex: 1; min-width: 200px; }

#timestamp-display span {
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    color: var(--neon);
}

.no-print {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.no-print input[type="text"] {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(57, 255, 20, 0.3);
    border-radius: 6px;
    color: var(--text-bright);
    padding: 6px 10px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.no-print input[type="text"]:focus {
    border-color: var(--neon);
}

.no-print label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: var(--text);
}

.no-print input[type="checkbox"] {
    accent-color: var(--neon);
    width: 16px;
    height: 16px;
}

/* ── Container wrapper ─────────────────────────────────────────────── */
.container-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
    padding: 20px 16px 40px;
}

/* ── Container box (card) ──────────────────────────────────────────── */
.container-box {
    width: 90%;
    max-width: 850px;
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 28px 32px;
    border-radius: 14px;
    border: 1px solid rgba(57, 255, 20, 0.14);
    box-shadow:
	0 0 24px rgba(57, 255, 20, 0.10),
	0 0 80px rgba(57, 255, 20, 0.04),
	inset 0 1px 0 rgba(255, 255, 255, 0.06);
    text-align: center;
    animation: fadeUp 0.55s ease both;
}

.container-box h2 {
    font-family: 'Orbitron', sans-serif;
    color: var(--neon);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 22px;
    text-shadow: 0 0 12px rgba(57, 255, 20, 0.4);
}

/* ── Button group ──────────────────────────────────────────────────── */
.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

/* ── Racing buttons ────────────────────────────────────────────────── */
.racing-button {
    flex: 1 1 calc(50% - 10px);
    max-width: calc(50% - 10px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.4;
    color: #000;
    padding: 16px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    background: linear-gradient(45deg, var(--neon), var(--neon-dim), var(--neon));
    background-size: 300% 300%;
    animation: flow 3s ease infinite;
    box-shadow: 0 0 14px var(--neon), 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

/* Shimmer sweep on hover */
.racing-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.4s ease;
}

.racing-button:hover::after { left: 130%; }

.racing-button:hover {
    transform: scale(1.04) translateY(-3px);
    box-shadow: 0 0 28px var(--neon), 0 10px 28px rgba(0, 0, 0, 0.6);
}

.racing-button:active { transform: scale(0.97); }

/* ── Back button ───────────────────────────────────────────────────── */
.back-button {
    position: fixed;
    top: 22px;
    left: 22px;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--neon);
    padding: 9px 16px;
    border-radius: 7px;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(57, 255, 20, 0.4);
    backdrop-filter: blur(10px);
    transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.15);
}

.back-button::before { content: '←'; font-size: 14px; }

.back-button:hover {
    background: rgba(57, 255, 20, 0.1);
    border-color: var(--neon);
    color: #fff;
    box-shadow: 0 0 18px rgba(57, 255, 20, 0.35);
}

/* ── Logout button ─────────────────────────────────────────────────── */
.logout-button {
    position: fixed;
    top: 70px;
    left: 22px;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--neon);
    padding: 9px 16px;
    border-radius: 7px;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(57, 255, 20, 0.4);
    backdrop-filter: blur(10px);
    transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.15);
}

.logout-button:hover {
    background: rgba(57, 255, 20, 0.1);
    border-color: var(--neon);
    color: #fff;
    box-shadow: 0 0 18px rgba(57, 255, 20, 0.35);
}

/* ── Footer ────────────────────────────────────────────────────────── */
footer {
    width: 100%;
    text-align: center;
    padding: 16px 0 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    color: rgba(57, 255, 20, 0.4);
}

footer:hover { color: var(--neon); }

/* ── Chrome title ──────────────────────────────────────────────────── */
@keyframes chromeShine {
    0%   { background-position: -200%; }
    100% { background-position:  200%; }
}

.chrome-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 30px;
    font-weight: 900;
    background: linear-gradient(
	120deg,
	#999999 0%,
	#ffffff 40%,
	#39ff14 60%,
	#ffffff 80%,
	#999999 100%
    );
    background-size: 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: chromeShine 30s linear infinite;
    padding: 20px;
    margin-top: 30px;
    text-align: center;
}



/* ── Animations ────────────────────────────────────────────────────── */
@keyframes flow {
    0%   { background-position: 0%   50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0%   50%; }
}

@keyframes speedLines {
    from { transform: translateX(0); }
    to   { transform: translateX(200px); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .logo { max-width: 200px; }
	
    .event-title {
        font-size: 16px;
        line-height: 1.3;
        padding: 0 16px;
	}
	
    .container-box {
        padding: 20px 16px;
	}
	
    .container-box h2 { font-size: 15px; }
	
    .racing-button {
        flex: 1 1 100%;
        max-width: 100%;
        font-size: 12px;
        padding: 14px 16px;
	}
	
    .back-button {
        top: auto;
        bottom: 16px;
        left: 16px;
	}
	
    .logout-button {
        top: auto;
        bottom: 62px;
        left: 16px;
	}
	
	
}
