/* Xcojo Shared Components — requires tokens.css loaded first */
body {
    font-family: var(--xcojo-font);
    background-color: var(--xcojo-bg);
    color: var(--xcojo-text);
    line-height: 1.6;
}

.xcojo-card {
    background: var(--xcojo-card-bg);
    border: 1px solid var(--xcojo-border);
    padding: 30px;
    margin-bottom: var(--xcojo-space-5);
    border-radius: var(--xcojo-radius-lg);
    box-shadow: var(--xcojo-shadow-sm);
    box-sizing: border-box;
}

.xcojo-hamburger-btn {
    background: var(--xcojo-card-bg);
    border: 2px solid var(--xcojo-border);
    color: var(--xcojo-text);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: var(--xcojo-shadow-sm);
    transition: border-color 0.2s, background 0.2s;
}
.xcojo-hamburger-btn:hover {
    border-color: var(--xcojo-accent);
}

.xcojo-dropdown {
    position: relative;
    display: inline-block;
}
.xcojo-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    background: var(--xcojo-card-bg);
    border: 1px solid var(--xcojo-border);
    min-width: 250px;
    border-radius: var(--xcojo-radius-md);
    box-shadow: var(--xcojo-shadow-md);
    z-index: 1000;
    padding: 14px;
    box-sizing: border-box;
}
.xcojo-dropdown-content.show {
    display: block;
}
.xcojo-dropdown-item {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: var(--xcojo-text);
    padding: 10px 12px;
    font-size: 1rem;
    border-radius: var(--xcojo-radius-sm);
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
}
.xcojo-dropdown-item:hover {
    background: var(--xcojo-code-bg);
    color: var(--xcojo-accent);
}
.xcojo-dropdown-divider {
    height: 1px;
    background: var(--xcojo-border);
    margin: 10px 0;
}

.xcojo-sub-nav-bar {
    background: var(--xcojo-card-bg);
    border: 1px solid var(--xcojo-border);
    padding: 12px 20px;
    margin-bottom: var(--xcojo-space-5);
    border-radius: var(--xcojo-radius-pill);
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 10px;
    box-shadow: var(--xcojo-shadow-sm);
}
.xcojo-sub-nav-btn {
    background: transparent;
    border: 1px solid var(--xcojo-border);
    color: var(--xcojo-text);
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 1.05rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.xcojo-sub-nav-btn:hover, .xcojo-sub-nav-btn.active {
    background: var(--xcojo-bg);
    border-color: #888;
    font-weight: 600;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.xcojo-code-block-wrapper {
    position: relative;
    margin-top: 10px;
}
.xcojo-code-block-wrapper pre {
    background: var(--xcojo-pre-bg);
    color: var(--xcojo-pre-color);
    padding: 15px;
    border-radius: var(--xcojo-radius-sm);
    overflow-x: auto;
    font-family: monospace;
    font-size: 0.9rem;
    white-space: pre-wrap;
    word-break: break-all;
}
.xcojo-copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 4px 10px;
    border-radius: var(--xcojo-radius-sm);
    font-size: 0.8rem;
    cursor: pointer;
}
.xcojo-copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.xcojo-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
}
.xcojo-badge-free { background: rgba(52, 199, 89, 0.15); color: var(--xcojo-success); }
.xcojo-badge-key { background: rgba(255, 59, 48, 0.15); color: var(--xcojo-danger); }
.xcojo-badge-none { background: rgba(102, 102, 102, 0.15); color: var(--xcojo-subtext); }