/**
 * Hopo Design System (HDS) v1.2.0
 * Official UI & Component Library for Hopo Ecosystem
 * Built upon Google Material 3 (Squircle Aesthetics) + Hopo Brand Enhancements
 * Copyright (c) 2026 HopoStudio.xyz
 */

:root {
    /* 1. Hopo Color Palette */
    --hopo-primary: #1a73e8;
    --hopo-primary-hover: #1557b0;
    --hopo-primary-light: #e8f0fe;
    --hopo-primary-dark: #174ea6;
    --hopo-bg-page: #f8fafd;
    --hopo-bg-surface: rgba(255, 255, 255, 0.94);
    --hopo-bg-subtle: #f1f3f4;
    --hopo-text-main: #202124;
    --hopo-text-sub: #5f6368;
    --hopo-text-muted: #80868b;
    --hopo-border: #dadce0;
    --hopo-border-subtle: #e8eaed;
    --hopo-code-bg: #1e293b;
    --hopo-code-text: #e2e8f0;

    /* 2. Hopo Squircle Corner Radii */
    --hopo-radius-sm: 8px;
    --hopo-radius-md: 14px;
    --hopo-radius-lg: 20px;
    --hopo-radius-xl: 24px;
    --hopo-radius-pill: 9999px;

    /* 3. Hopo Elevation & Shadows */
    --hopo-shadow-sm: 0 1px 3px 0 rgba(60,64,67,0.08), 0 2px 6px 2px rgba(60,64,67,0.06);
    --hopo-shadow-md: 0 4px 16px rgba(60,64,67,0.12);
    --hopo-shadow-hover: 0 12px 28px -6px rgba(26, 115, 232, 0.16);

    /* 4. Hopo Horizon Glow Line */
    --hopo-horizon-gradient: linear-gradient(90deg, #1a73e8 0%, #00c6ff 50%, #34a853 100%);
}

/* Hopo Background Matrix Dot-Grid */
body.hopo-canvas, .hopo-canvas-bg {
    background-color: var(--hopo-bg-page);
    background-image: radial-gradient(#dadce0 1.2px, transparent 1.2px);
    background-size: 20px 20px;
    color: var(--hopo-text-main);
    font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

/* Hopo Top Horizon Line */
.hopo-horizon-bar {
    height: 3px;
    width: 100%;
    background: var(--hopo-horizon-gradient);
    position: sticky;
    top: 0;
    z-index: 101;
}

/* Hopo Squircle Cards */
.hopo-card {
    background: var(--hopo-bg-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--hopo-border);
    border-radius: var(--hopo-radius-xl);
    padding: 28px;
    box-shadow: var(--hopo-shadow-sm);
    transition: all 0.25s ease;
}

.hopo-card:hover {
    border-color: var(--hopo-primary);
    box-shadow: var(--hopo-shadow-hover);
    transform: translateY(-3px);
}

/* Hopo Buttons (Pill Squircle) */
.hopo-btn-primary {
    background-color: var(--hopo-primary);
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    padding: 9px 22px;
    border-radius: var(--hopo-radius-pill);
    text-decoration: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.hopo-btn-primary:hover {
    background-color: var(--hopo-primary-hover);
    box-shadow: 0 4px 12px rgba(26,115,232,0.35);
    transform: translateY(-1px);
}

.hopo-btn-outline {
    background-color: transparent;
    color: var(--hopo-primary);
    border: 1px solid var(--hopo-border);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: var(--hopo-radius-pill);
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.hopo-btn-outline:hover {
    background-color: var(--hopo-primary-light);
    border-color: var(--hopo-primary);
}

/* Hopo Inputs */
.hopo-input {
    width: 100%;
    padding: 12px 18px;
    border: 1px solid var(--hopo-border);
    border-radius: var(--hopo-radius-md);
    font-size: 14px;
    color: var(--hopo-text-main);
    background-color: #ffffff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.hopo-input:focus {
    border-color: var(--hopo-primary);
    box-shadow: 0 0 0 3px rgba(26,115,232,0.18);
}

/* Hopo Badges */
.hopo-badge-sys {
    background: linear-gradient(135deg, #e8f0fe 0%, #d2e3fc 100%);
    color: var(--hopo-primary-dark);
    border: 1px solid #aecbfa;
    font-size: 11.5px;
    padding: 3px 10px;
    border-radius: var(--hopo-radius-pill);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.hopo-badge-aql {
    background: linear-gradient(135deg, #f3e8fd 0%, #e8f0fe 100%);
    color: #681da8;
    border: 1px solid #d7aefb;
    font-size: 11.5px;
    padding: 3px 10px;
    border-radius: var(--hopo-radius-pill);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Hopo IDE Terminal Code Window */
.hopo-code-window {
    background-color: var(--hopo-code-bg);
    border-radius: var(--hopo-radius-md);
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.hopo-code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    background-color: #0f172a;
    border-bottom: 1px solid #334155;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
}

.hopo-mac-dots {
    display: inline-flex;
    gap: 6px;
    margin-right: 10px;
}

.hopo-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.hopo-dot-red { background: #ff5f56; }
.hopo-dot-yellow { background: #ffbd2e; }
.hopo-dot-green { background: #27c93f; }
