/* ========== common.css — Shared variables, reset, brand, nav, buttons, toast ========== */

:root {
    /* 主色调 */
    --bg-left: #FFD500;
    --text-left: #111111;
    --bg-right: #F4F4F0;
    --text-right: #111111;
    
    /* 强调色 */
    --accent-blue: #2563EB;
    --accent-blue-hover: #1D4ED8;
    --accent-green: #10B981;
    --accent-red: #EF4444;
    --accent-purple: #8B5CF6;
    
    /* 边框与阴影 */
    --border-thick: 3px solid #111111;
    --border-thin: 2px solid #111111;
    --shadow-sharp: 6px 6px 0px #111111;
    --shadow-sharp-sm: 4px 4px 0px #111111;
    --shadow-active: 2px 2px 0px #111111;
    
    /* 字体 */
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-right);
}

/* ========== Brand ========== */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    color: var(--text-right);
    text-decoration: none;
}

.brand-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ========== Buttons ========== */
.btn-outline {
    background: transparent;
    border: var(--border-thin);
    padding: 8px 16px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    color: var(--text-right);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.btn-outline:hover {
    background: #111;
    color: #fff;
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0px var(--accent-blue);
}

/* ========== Toast ========== */
.toast {
    position: fixed;
    top: 24px;
    right: 24px;
    background: #111;
    color: #fff;
    padding: 16px 24px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    border: var(--border-thick);
    box-shadow: var(--shadow-sharp-sm);
    z-index: 1000;
    transform: translateX(150%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.toast.show { transform: translateX(0); }

/* ========== Navbar (for subpages) ========== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 40px;
    border-bottom: var(--border-thick);
    background: #fff;
}

.navbar .brand { color: var(--text-right); }

.nav-right {
    display: flex;
    gap: 16px;
}

/* ========== Language Selector ========== */
.lang-select {
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    border: var(--border-thin);
    padding: 6px 28px 6px 10px;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    color: #111;
    cursor: pointer;
    outline: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23111'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    transition: all 0.15s;
}

.lang-select:hover {
    background-color: #111;
    color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23fff'/%3E%3C/svg%3E");
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0px var(--accent-blue);
}

.lang-select:focus {
    box-shadow: 0 0 0 2px var(--accent-blue);
}

/* ========== Custom Cursor ========== */
body {
    cursor: url('../img/cursor.svg') 2 28, auto;
}

a, button, select, .btn-outline, .btn-brutal, .btn-copy, .btn-vote, .btn-card, .lang-select {
    cursor: url('../img/cursor.svg') 2 28, pointer;
}

@media (max-width: 768px) {
    .navbar { padding: 16px 20px; }
}
