/* ============================================================
   LENO // SPOOK — full stylesheet
   Every style used by the spook dashboard parts.

   HOW TO USE:
   Link this ONCE (e.g. in Header Tracking Code), then put only
   the HTML from each part-N file into its blocks.
     <link href="/spook/lenospookstylesheet.css" rel="stylesheet">

   NOTE: this contains a universal `* { }` reset and `body { }`
   rules (faithful to the original page). Header Tracking Code
   loads on the public site only, NOT the CMS dashboard, so it
   won't break the admin UI — but do NOT also paste this into a
   content/HTML block, or it will leak into the editor.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Orbitron:wght@400;700;900&display=swap');

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

:root {
    --ghost-green: #00ff88;
    --ghost-blue: #00d4ff;
    --ghost-purple: #b388ff;
    --dark-bg: rgba(0, 0, 0, 0.7);
    --card-bg: rgba(10, 20, 30, 0.85);
    --border-glow: rgba(0, 255, 136, 0.3);
}

body {
    font-family: 'Share Tech Mono', monospace;
    background: url('Leno_Sky.png') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    color: #e0e0e0;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,20,40,0.5) 100%);
    pointer-events: none;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-glow);
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ghost-logo {
    width: 120px;
    height: 120px;
    filter: drop-shadow(0 0 30px var(--ghost-green));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.site-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 900;
    background: linear-gradient(90deg, var(--ghost-green), var(--ghost-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
    letter-spacing: 4px;
}

.site-title span {
    color: var(--ghost-purple);
    -webkit-text-fill-color: var(--ghost-purple);
}

/* Clock Section */
.clock-section {
    display: flex;
    align-items: center;
    gap: 20px;
    width: fit-content;
    margin-left: auto;
}

.analogue-clock {
    width: 120px;
    height: 120px;
    filter: drop-shadow(0 0 15px var(--ghost-green));
}

.clock-face {
    fill: rgba(10, 20, 30, 0.9);
    stroke: var(--ghost-green);
    stroke-width: 2;
}

.clock-center {
    fill: var(--ghost-green);
    filter: drop-shadow(0 0 5px var(--ghost-green));
}

.hour-mark {
    stroke: var(--ghost-green);
    stroke-width: 2;
    opacity: 0.6;
}

.hour-mark-major {
    stroke: var(--ghost-green);
    stroke-width: 3;
    opacity: 1;
}

.clock-hand {
    stroke-linecap: round;
    filter: drop-shadow(0 0 3px var(--ghost-green));
}

.hour-hand {
    stroke: var(--ghost-green);
    stroke-width: 4;
}

.minute-hand {
    stroke: var(--ghost-blue);
    stroke-width: 3;
}

.second-hand {
    stroke: var(--ghost-purple);
    stroke-width: 1.5;
}

.clock-text {
    text-align: right;
}

.time {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--ghost-green);
    text-shadow: 0 0 20px var(--ghost-green);
    letter-spacing: 3px;
}

.date {
    font-size: 0.8rem;
    color: var(--ghost-blue);
    letter-spacing: 2px;
    margin-top: 5px;
}

/* Main Grid */
.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* Cards */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-glow);
    border-radius: 10px;
    padding: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.card:hover {
    border-color: var(--ghost-green);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.2);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
}

.card-header svg {
    width: 24px;
    height: 24px;
    fill: var(--ghost-green);
}

.card-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: var(--ghost-green);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Weather */
.weather-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.weather-temp {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    color: var(--ghost-blue);
    text-shadow: 0 0 15px var(--ghost-blue);
}

.weather-icon {
    font-size: 3rem;
}

.weather-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-size: 0.85rem;
}

.weather-detail {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.weather-label {
    color: #888;
}

.weather-value {
    color: var(--ghost-blue);
}

/* Quick Links */
.quick-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (min-width: 500px) {
    .quick-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 8px;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.quick-link:hover {
    background: rgba(0, 255, 136, 0.15);
    border-color: var(--ghost-green);
    color: var(--ghost-green);
    transform: scale(1.02);
}

.quick-link svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.quick-link span {
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* News Feed */
.news-feed {
    max-height: 500px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--ghost-green) transparent;
}

.news-feed::-webkit-scrollbar {
    width: 6px;
}

.news-feed::-webkit-scrollbar-track {
    background: transparent;
}

.news-feed::-webkit-scrollbar-thumb {
    background: var(--ghost-green);
    border-radius: 3px;
}

.news-item {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-decoration: none;
    transition: all 0.2s ease;
}

.news-item:hover {
    background: rgba(0, 255, 136, 0.05);
    padding-left: 10px;
}

.news-item:last-child {
    border-bottom: none;
}

.news-source {
    font-size: 0.7rem;
    color: var(--ghost-purple);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.news-title {
    font-size: 0.9rem;
    color: #e0e0e0;
    line-height: 1.4;
    margin-bottom: 5px;
}

.news-item:hover .news-title {
    color: var(--ghost-green);
}

.news-time {
    font-size: 0.75rem;
    color: #666;
}

/* News tabs */
.news-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.news-tab {
    padding: 12px 20px;
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 8px;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    letter-spacing: 1px;
    font-family: 'Share Tech Mono', monospace;
}

.news-tab:hover {
    background: rgba(0, 255, 136, 0.15);
    border-color: var(--ghost-green);
    color: var(--ghost-green);
    transform: scale(1.02);
}

.news-tab.active {
    background: rgba(0, 255, 136, 0.2);
    border-color: var(--ghost-green);
    color: var(--ghost-green);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

/* Full width news card */
.card.news-card {
    grid-column: 1 / -1;
}

/* Loading state */
.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--ghost-green);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

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

/* Scan line effect */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1) 0px,
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
    opacity: 0.3;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
    }

    .clock-section {
        justify-content: center;
    }

    .ghost-logo,
    .analogue-clock {
        width: 100px;
        height: 100px;
    }

    .quick-links {
        grid-template-columns: 1fr;
    }

    .dashboard {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 15px;
    }
}

@media (min-width: 1200px) {
    .dashboard {
        grid-template-columns: repeat(3, 1fr);
    }

    .card.news-card {
        grid-column: span 2;
    }
}

/* Status indicator */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ghost-green);
    box-shadow: 0 0 10px var(--ghost-green);
    animation: pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

.status-dot.down {
    background: #ff4757;
    box-shadow: 0 0 10px #ff4757;
}

.status-dot.pending {
    background: #ffa502;
    box-shadow: 0 0 10px #ffa502;
}

.status-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: rgba(0, 255, 136, 0.03);
    border-radius: 6px;
    font-size: 0.85rem;
}

.status-item:hover {
    background: rgba(0, 255, 136, 0.08);
}

.status-name {
    flex: 1;
    color: #ccc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-value {
    color: var(--ghost-green);
    font-size: 0.75rem;
    text-transform: uppercase;
}

.status-value.down {
    color: #ff4757;
}

.status-value.pending {
    color: #ffa502;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 30px;
    border-top: 1px solid var(--border-glow);
    color: #555;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.footer a {
    color: var(--ghost-green);
    text-decoration: none;
}
