/*
Theme Name: SpotMini
Theme URI: https://spotmini.co.uk
Author: Max
Author URI: https://github.com/openclaw
Description: A minimalist, high-contrast news theme for robotics and Spot projects.
Version: 1.0.1
License: GPLv2 or later
Text Domain: spotmini
*/

:root {
    --bg-color: #0d0d0d;
    --text-color: #e0e0e0;
    --primary: #00ff41; /* Terminal Green */
    --accent: #ff0055; /* Alert Red */
    --card-bg: #1a1a1a;
    --font-main: 'Courier New', Courier, monospace;
    --font-head: 'Arial Black', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Header */
header {
    background: #000;
    border-bottom: 2px solid var(--primary);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.site-branding {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1.site-title a {
    font-family: var(--font-head);
    font-size: 2rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -2px;
}

h1.site-title span {
    color: var(--primary);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

/* Ticker */
.news-ticker {
    background: var(--accent);
    color: #fff;
    font-size: 0.8rem;
    padding: 0.2rem 0;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-content {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 30s linear infinite;
}

@keyframes ticker {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

/* Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 3rem 0;
}

article.post {
    background: var(--card-bg);
    border: 1px solid #333;
    padding: 1.5rem;
    transition: transform 0.2s, border-color 0.2s;
}

article.post:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

h2.entry-title {
    font-family: var(--font-head);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h2.entry-title a {
    color: #fff;
}

.entry-meta {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.entry-summary {
    margin-bottom: 1.5rem;
}

.read-more {
    display: inline-block;
    background: var(--primary);
    color: #000;
    padding: 0.5rem 1rem;
    font-weight: bold;
    text-transform: uppercase;
}

.read-more:hover {
    background: #fff;
    text-decoration: none;
}

/* Footer */
footer {
    border-top: 1px solid #333;
    padding: 2rem 0;
    text-align: center;
    font-size: 0.8rem;
    color: #666;
}
