/* Catppuccin Latte */
[data-theme="latte"] {
    --base: #eff1f5;
    --surface0: #ccd0da;
    --surface1: #bcc0cc;
    --mantle: #e6e9ef;
    --crust: #dce0e8;
    --text: #4c4f69;
    --subtext: #6c6f85;
    --lavender: #7287fd;
    --blue: #1e66f5;
    --mauve: #8839ef;
    --accent: #1e66f5;
    --card-bg: #ffffff;
    --shadow: rgba(76, 79, 105, 0.12);
}

/* Catppuccin Frappe */
[data-theme="frappe"] {
    --base: #303446;
    --surface0: #414559;
    --surface1: #51576d;
    --mantle: #292c3c;
    --crust: #232634;
    --text: #c6d0f5;
    --subtext: #a5adce;
    --lavender: #babbf1;
    --blue: #8caaee;
    --mauve: #ca9ee6;
    --accent: #8caaee;
    --card-bg: #414559;
    --shadow: rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--base);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background 0.2s, color 0.2s;
}

/* Header */
header {
    background: var(--mantle);
    border-bottom: 2px solid var(--surface0);
    padding: 1rem 2rem;
}

.header-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header h1 {
    font-size: 1.5rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-toggle {
    background: var(--surface0);
    border: none;
    color: var(--text);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

.theme-toggle:hover {
    background: var(--surface1);
}

/* Main */
main {
    flex: 1;
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    width: 100%;
}

.intro {
    color: var(--subtext);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

/* Card */
.card {
    background: var(--card-bg);
    border: 1.5px solid var(--surface0);
    border-radius: 14px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text);
    box-shadow: 0 2px 8px var(--shadow);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 16px var(--shadow);
    transform: translateY(-2px);
}

.card-icon {
    font-size: 2rem;
    color: var(--accent);
    flex-shrink: 0;
    width: 2.5rem;
    text-align: center;
}

.card-body {
    flex: 1;
}

.card-body h2 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.status-dot {
    display: inline-block;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot.online {
    background: #40a02b;
    box-shadow: 0 0 0 2px rgba(64, 160, 43, 0.25);
}

.status-dot.offline {
    background: #d20f39;
    box-shadow: 0 0 0 2px rgba(210, 15, 57, 0.25);
}

.card-body p {
    font-size: 0.875rem;
    color: var(--subtext);
    line-height: 1.4;
}

.card-arrow {
    color: var(--surface1);
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: color 0.2s, transform 0.2s;
}

.card:hover .card-arrow {
    color: var(--accent);
    transform: translateX(3px);
}

/* Footer */
footer {
    background: var(--mantle);
    border-top: 1px solid var(--surface0);
    text-align: center;
    padding: 0.9rem 1.5rem;
    font-size: 0.85rem;
    color: var(--subtext);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

footer a {
    color: var(--subtext);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--accent);
}

.sep {
    opacity: 0.4;
}

.version {
    opacity: 0.5;
    font-size: 0.8rem;
}
