/* GitOky — Common header/footer (gk- prefix) */

.gk-header {
    background: #161b22;
    border-bottom: 1px solid #30363d;
    padding: 0 24px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Logo */
.gk-logo {
    font-size: 18px;
    font-weight: bold;
    color: #e6edf3;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}
.gk-logo:hover { text-decoration: none; }
.gk-logo-icon { flex-shrink: 0; }
.gk-logo .c-g { color: #ff6b6b; }
.gk-logo .c-i { color: #ffa94d; }
.gk-logo .c-t { color: #ffd43b; }
.gk-logo .c-o { color: #4FC1FF; }
.gk-logo .c-k { color: #00c49a; }
.gk-logo .c-y { color: #da77f2; }

/* Service nav */
.gk-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 32px;
}
.gk-nav-link {
    padding: 6px 12px;
    font-size: 14px;
    color: #8b949e;
    border-radius: 6px;
    text-decoration: none;
    transition: color .15s, background .15s;
}
.gk-nav-link:hover {
    color: #e6edf3;
    background: #21262d;
    text-decoration: none;
}
.gk-nav-link.active {
    color: #e6edf3;
    font-weight: 600;
    background: #21262d;
}

/* Actions (right side) */
.gk-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.gk-btn {
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 6px;
    border: 1px solid #30363d;
    cursor: pointer;
    color: #e6edf3;
    background: #21262d;
    text-decoration: none;
    font-weight: 500;
}
.gk-btn:hover { background: #30363d; text-decoration: none; }
.gk-btn-primary { background: #238636; border-color: #238636; color: #fff; }
.gk-btn-primary:hover { background: #2ea043; }

/* Avatar */
.gk-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #30363d;
    background: #21262d;
    color: #e6edf3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    user-select: none;
}
.gk-avatar:hover { border-color: #58a6ff; }

/* Dropdown */
.gk-dropdown { position: relative; }
.gk-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    min-width: 200px;
    z-index: 200;
    padding: 4px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.gk-dropdown.open .gk-dropdown-menu { display: block; }
.gk-dropdown-menu a {
    display: block;
    padding: 7px 16px;
    font-size: 14px;
    color: #e6edf3;
    text-decoration: none;
}
.gk-dropdown-menu a:hover { background: #21262d; text-decoration: none; }
.gk-danger { color: #f85149 !important; }
.gk-dropdown-divider { height: 1px; background: #30363d; margin: 4px 0; }
.gk-dropdown-label {
    padding: 6px 16px 2px;
    font-size: 11px;
    color: #7d8590;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Footer */
.gk-footer {
    text-align: center;
    padding: 24px;
    border-top: 1px solid #30363d;
    font-size: 13px;
    color: #7d8590;
}
.gk-footer a { color: #58a6ff; text-decoration: none; }

/* Mobile */
@media (max-width: 768px) {
    .gk-header { padding: 0 12px; }
    .gk-nav { margin-left: 16px; gap: 0; }
    .gk-nav-link { padding: 6px 8px; font-size: 13px; }
}
